How do I do this in Javascript?
switch(c){
case 'a':
//do something, condition does not match so go to default case
//don't break in here, and don't allow fall through to other cases.
case 'b':
//..
case 'c':
//..
case '_':
//...
default:
//
break;
}
This is a almost a copy of Jumping from one case to the default case in switch statement, but there isn't a solution for javascript, so I have to add this new post.