读书笔记——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.
相关文章推荐
- 《You Don't Know JS》
- Note On <You Don't Know JS - Scope and Closures>
- You Don't Know JS: Types & Grammar 总结
- 读《You Don't Know CSS(二)》 读书笔记
- Note On <You Don't Know JS - this and Object Prototypes>
- 读you don't know js 有感之作用域
- You don't know js
- Get - When you don't know phrasal verbs, use "GET"
- Don't make me think 读书笔记
- You don't say!
- [转]35 Google open-source projects that you probably don't know
- ssh-keygen:you don't exist,go away
- Writing endian-independent code in C(Don't let endianness "byte" you)
- javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
- 读书笔记-Don't Make Me Think(Steve Krug)
- Programmers Don't Read Books -- But You Should
- wampserver出现You don&#39;t have permission to access / on this server.
- 7 Success Secrets That 99% of People Don't Know or Use
- 我想骂人.....but i don't know why i do that?
- Why you don't want real-time analytics to be exact