javascript passare variabile
var thing = true; //try changing this to false
thing = !thing; //the variable will go from true to false, or from false to true
dattiloscritto interruttore di prova per caso
switch(true) {
case if(constant1 == 1): {
//statements;
break;
}
case if(constant2 == 2): {
//statements;
break;
}
default: {
//statements;
break;
}
}