-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
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
JS-作用域链相关问题 #23
Labels
Comments
var a = 1;
|
下面是我的理解,有什么问题还望大家指正。
2.接下来是执行 console.log(a) 进入0级别
3.接下来是执行 a = 10; console.log(a); 进入0级别
4.接下来是执行console.log(b)进入0级别
5.结果
|
将以上代码改写如下:
|
Open
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如下代码的输出是什么? 为什么?
The text was updated successfully, but these errors were encountered: