javascript toggle 변수
var thing = true; //try changing this to false
thing = !thing; //the variable will go from true to false, or from false to true
타이프 라이터 스위치 테스트를 당한 경우
switch(true) {
case if(constant1 == 1): {
//statements;
break;
}
case if(constant2 == 2): {
//statements;
break;
}
default: {
//statements;
break;
}
}