📜  javascript代码示例中let和const有什么区别

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

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