TIL [반복문] Switch

김은혁·2021년 7월 20일
0
switch () {
        case :
        	const x = ...;
        case :
        	const x = ...;
        }
// 불가
switch () {
        case : {
        	const x = ...;
        	}
        case : {
        	const x = ...;
			}
        }
// 가능

0개의 댓글