Skip to content

直到结束 let(“死区”)翻译不当 https://zh.javascript.info/task/let-scope #1172

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

Closed
dokcn opened this issue Jul 26, 2023 · 3 comments
Labels
Solved Problem solved

Comments

@dokcn
Copy link

dokcn commented Jul 26, 2023

建议翻译为:引擎从函数开始就知道局部变量 x, 但是变量 x 一直处于“未初始化”(无法使用)的状态,直到遇到let,此时“死区”结束
5

@dokcn
Copy link
Author

dokcn commented Jul 26, 2023

另外本题中提到的let换成const应该是同样适用的,是否需要添加说明?

@leviding
Copy link
Member

另外本题中提到的let换成const应该是同样适用的,是否需要添加说明?

题目只涉及 let 就先只管 let 吧

@leviding
Copy link
Member

Thanks, fixed in fbf4182

@leviding leviding added the Solved Problem solved label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Solved Problem solved
Projects
None yet
Development

No branches or pull requests

2 participants