4.1.2 블록문 (Block Statement)
제어문은 아니지만 제어문과 함께 쓰임
복합문 (Compound Statement) 라고 함
여러 개를 중괄호로 묶은 것
let funds = 50;
if (funds > 0)
{ // 블록문 시작
console.log(funds);
} // 블록문 끝
Last updated
제어문은 아니지만 제어문과 함께 쓰임
복합문 (Compound Statement) 라고 함
여러 개를 중괄호로 묶은 것
let funds = 50;
if (funds > 0)
{ // 블록문 시작
console.log(funds);
} // 블록문 끝
Last updated