We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/WindrunnerMax/EveryDay/blob/master/JavaScript/ES6新特性.md 这里写到“var会变量提升,let与const也存在变量提升但有所不同。” 但是参考 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/let#描述 其实是不会提升的
The text was updated successfully, but these errors were encountered:
建议你去阅读英文原文,关于你这块,MDN的描述是
MDN
The other difference between var and let is that the latter is initialized to a value only when a parser evaluates it (see below).
他并没有对于变量提升的相关描述,如果你纠结于这个问题,不如去阅读 https://stackoverflow.com/questions/31219420/are-variables-declared-with-let-or-const-hoisted 的相关讨论
Sorry, something went wrong.
No branches or pull requests
https://github.com/WindrunnerMax/EveryDay/blob/master/JavaScript/ES6新特性.md
这里写到“var会变量提升,let与const也存在变量提升但有所不同。”
但是参考 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/let#描述
其实是不会提升的
The text was updated successfully, but these errors were encountered: