Skip to content
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] 第655天 js的作用域有哪些? #3502

Open
haizhilin2013 opened this issue Jan 29, 2021 · 6 comments
Open

[js] 第655天 js的作用域有哪些? #3502

haizhilin2013 opened this issue Jan 29, 2021 · 6 comments
Labels
js JavaScript

Comments

@haizhilin2013
Copy link
Collaborator

第655天 js的作用域有哪些?

#40

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the js JavaScript label Jan 29, 2021
@zuiaishuilanjiao
Copy link

全局变量 和 局部变量

@okbug
Copy link

okbug commented Feb 4, 2021

函数作用域和块级作用域

@aijiushimeicuo
Copy link

全局作用域、块级作用域、函数作用域、闭包作用域

@hyhzzz
Copy link

hyhzzz commented Jun 8, 2021

函数作用域/块作用域

@xiezhazha
Copy link

ES5中:全局变量和局部变量
ES6中:块级作用域

@hyj443
Copy link

hyj443 commented Oct 22, 2021

全局作用域 函数作用域 块作用域

作用域,就是当前的执行上下文,值和表达式在其中可以被访问到的上下文

作用域可以根据代码层次分层,以便于子作用域可以访问父作用域,沿着作用域链查找

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js JavaScript
Projects
None yet
Development

No branches or pull requests

7 participants