목록2024/05/10 (1)
juni
JS 문법 복습
let , const, var// let const는 블록단위 스코프let blockScopeVariable = "Available only in this block";if (true) { let blockedScope = "Visible inside this block"; console.log(blockedScope);}// 아래 주석 코드는 스코프 오류로 실행X// console.log(blockedScope)console.log(blockScopeVariable);for (let i = 0; i 3; i++) { console.log(i);}function testFunction() { let test = "any words"; if (true) { test = "changed va..
CS
2024. 5. 10. 21:55