Open harryworld opened 10 years ago
I think in JavaScript, switch
is defined as statement (Control Flow), more like a syntax.
The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Statements
We had a debate on whether
switch
inCoffeeScript
is an object or not?