您的位置:首页 > Web前端 > JavaScript

读书笔记——You Don't Know Js Up & Going

2017-03-28 14:39 381 查看

1. JavaScript has typed values, not typed variables.


2. The proper way to characterize them is that == checks for value equality with coercion allowed, and === checks for value equality without allowing coercion.


3. To understand what this points to, you have to examine how the function in question was called.


4. It's definitely worth the effort to let your brain simmer on closures for a bit.


5. It challenges you to go beyond your comfort zone and to ask the deeper "why" questions for every single behavior you encounter.



1. JavaScript has typed values, not typed variables.


2. The proper way to characterize them is that == checks for value equality with coercion allowed, and === checks for value equality without allowing coercion.


3. To understand what this points to, you have to examine how the function in question was called.


4. It's definitely worth the effort to let your brain simmer on closures for a bit.


5. It challenges you to go beyond your comfort zone and to ask the deeper "why" questions for every single behavior you encounter.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: