es6 var let const

var可以重复声明 没有作用域 浏览器预解释会自动提升 

let不可以重复声明 有相应的作用域 const 常量

 

posted @ 2021-03-01 15:58  howhy  阅读(24)  评论(0编辑  收藏  举报