作用域、閉包與變數

closure、hoisting、var/let 與 "use strict"。

2 / 2 題 · 依票數排序

6.4k

What is the difference between "let" and "var"?

ECMAScript 6 introduced the let declaration keyword . I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyw…

2009javascriptscopeecmascript-6varlet·3 重點答案·2.4M 次瀏覽