switch (action) {
case "draw":
drawIt();
break;
case "eat":
eatIt();
break;
default:
doNothing();
}
for (const value of array) {
// value로 작업 수행합니다.
}
for (const property in object) {
// 객체 프로퍼티로 작업 수행합니다.
}