var是ES5时代唯一的变量声明方式,核心特征都因“函数作用域”而生:在整个函数内可见、声明被提升且初值undefined、允许重复声明;而let/const从ES6引入块级作用域,用“暂时性死区”和禁止重复声明堵住了var的历史坑洞。
Results that may be inaccessible to you are currently showing.
Hide inaccessible resultsResults that may be inaccessible to you are currently showing.
Hide inaccessible results