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
// 1. var a = 1; if (true) { console.log(a); var a = 2; } // 2. var a = 1; if (true) { console.log(a); let a = 2; }
The text was updated successfully, but these errors were encountered:
1,报错
Sorry, something went wrong.
var a a = 1; if (true) { console.log(a); a = 2; }
应该不是提升到if作用域下 提升到函数作用域下
第二题 如果if是个function,那就是undefined了
No branches or pull requests
The text was updated successfully, but these errors were encountered: