this那篇习题答案有误 #1062
Answered
by
songhn233
xiaowangge666
asked this question in
Q&A
this那篇习题答案有误
#1062
-
function makeUser() {
|
Beta Was this translation helpful? Give feedback.
Answered by
songhn233
Jun 19, 2022
Replies: 1 comment
-
Hello,本教程已经说明:
在严格模式下 global 不会把 this 设置为 globalThis,而是为 undefined P.S. 同时可以把这个理解为默认行为,因为在现代前端开发绝大部分上下文都是暗含了开启严格模式的。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
songhn233
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,本教程已经说明:
在严格模式下 global 不会把 this 设置为 globalThis,而是为 undefined
P.S. 同时可以把这个理解为默认行为,因为在现代前端开发绝大部分上下文都是暗含了开启严格模式的。