Get MemeStreams Stuff!
var c=2; var x=2; switch(x) { case 1: alert("In 1"); break; case c: alert("In 2"); break; default: alert("default"); } //displays 2!
In JavaScript you can define case blocks with expressions. ... wow... I mean... just wow.