if const a = 1; if ( a + 1 === 2 ) { console.log('a+1은 2입니다.'); } -----------------------출력 : a+1은 2입니다. const a = 1; if ( a = 1 ===2 ) { const a = 2; console.log('if문 안의 a 값은' + a); ----------출력 : if문 안의 a 값은 2 } console.log('if문 밖의 a 값은' + a); ----------출력 : if문 밖의 a 값은 1 => {}중괄호를 하나의 블록 범위로 본다. 다른 블록 안에서 같은 상수(const) 또는 변수(let)를 사용할 수 있다. if else const a = 10; if ( a > 15 ) { console.log('a가..