Is it possible to use nested switch statement in javascript.
switch
My code is some what look like
switch(id1) { case 1: switch(id2){ ca
Basically, it's possible but I think it depends on the complexity of the nesting if it's recommended to use nested switch statement or to use functions with the nested switch statement as Ómar Óskarsson has suggested.