📜  var let 和 const 的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:47.606000             🧑  作者: Mango

代码示例1
var: 
    * hoisted(global scope)
    * function scope
let:
    * block scope
    * reassignable
    * not redeclarable
const: 
    * block scope
    * not reassignable
    * not redeclarable