📜  10 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:27.548000             🧑  作者: Mango

代码示例1
let x = 10;
if (x == 10) {
    let x = 20;
    console.log(x); // 20:  reference x inside the block
}
console.log(x); // 10: reference at the begining of the script
Code language: JavaScript (javascript)