102

带你理解 JS 容易出错的坑和细节

 6 years ago
source link: https://juejin.im/post/59f54321f265da43085d4a7f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本文重在列出并解释说明 JS 中各种容易出错的坑和细节,供大家更加深入理解为什么 JS 会这样 执行环境(Execution context) var 和 let 的正确解释 当执行 JS 代码时,会生成执行环境,只要代码不是写在函数中的,就是在全局执行环境

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK