Hi all I searched and found old answers like in 2008, im creating firefox addon for new browsers so i can use ecma 5+.
I was trying to do a a switch that had one block meet multiple criteria like if >=0 && <= 3 like below:
switch (blah) {
case 0, 1, 2, 3: //<<<<<<<< this here please
//do this;
break;
default:
///do this
}
This is just a basic example.
I would like multiple values to trigger the same case. How do I do this?