조건의 내용이 딱 떨어지는 특정한 값일 경우 유용 switch (a) { case 0 : console.log('a is 0') break case 2 : console.log('a is 2') break case 4 : console.log('a is 4') break default : console.log('rest...') } - break 가 없으면 계속 실행되기 때문에 한 케이스가 끝난 후에는 사용해야 함 - defalt 위에 조건이 모두 아닐 경우 실행