조건문 (If statement)const a = random()if(a ===0) { console.log('a is 0')} else if (a ===2) { console.log('a is 2')} else { console.log('rest...')} 조건문 (Switch)If의 조건이 특정한 값으로 딱 떨어질 때는 switch문으로 직관적인 코딩이 가능하다.하나의 케이스 다음에는 break로 막아줘야 한다.마지막 default(else 개념)에는 break 불필요 switch (a) { case 0: console.log('a is 0') break case 2: console.log('a is 2') break case 4: console.log('a is..