📜  let js - Javascript 代码示例

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

代码示例3
// `let` vs `var` vs `const` in 'javascript'

"let" allows you to declare local variable whose scope 
      is limited to the block statement.

"var" allows you to declare a variable globally or locally 
      to an entire function.

"Const" just like let, are block-scoped.
        It's value can't be reassigned and it can't be redeclared.