question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If you have many options to choose from, use a switch statement. A switch statement tests a value and can have many case statements which defines various possible values. Statements are executed from the first matched case value until a break is encountered.

Isn’t it “which define”?

Challenge Selecting from many options with Switch Statements has an issue. User Agent is: Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


function caseInSwitch(val) {
  var answer = "";
  // Only change code below this line



  // Only change code above this line  
  return answer;  
}

// Change this value to test
caseInSwitch(1);


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chakrihackercommented, Oct 8, 2016

I will take this

0reactions
erictleungcommented, Oct 10, 2016

@ryzokuken thanks for checking that out. I neglected to check the code base. Thanks! This issue appears to be resolved so I’ll be closing this issue. Happy coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

there maybe a mistake | English examples in context - Ludwig
High quality example sentences with “there maybe a mistake” in context from reliable sources - Ludwig is the linguistic search engine that helps...
Read more >
There might be a mistake. or There may be a mistake.?
It all may be a mistake. · No, it must be a mistake. · I'm concerned for your safety and that this might...
Read more >
Which is correct, 'maybe by mistake' or 'may be by mistake'?
Which is correct, "maybe by mistake" or "may be by mistake"? Submission accepted by. Madan S Shekhawat.
Read more >
Maybe It Was A Mistake - song and lyrics by Stephen Star
Listen to Maybe It Was A Mistake on Spotify. Stephen Star · Song · 2018.
Read more >
Maybe I'm a Mistake [Explicit] - Amazon.com
Check out Maybe I'm a Mistake [Explicit] by The Dehumanizers on Amazon Music. Stream ad-free or purchase CD's and MP3s now on Amazon.com....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found