https://medium.com/trabe/using-switch-true-in-javascript-986e8ad8ae4f
var a = 0, b = true;
switch(true) {
case a:
var a = 0, b = true;
switch(true) {
case a:
console.log('a');
break;
case b:
console.log('b');
break;
}
0 commenti