No matter how much experience you have with javascript, odds are you don’t fully understand the language. This concise, in-depth guide takes you inside javascript’s this structure and object prototypes. You’ll learn how they work and why they’re integral to behavior delegation—a design pattern in wh
You Don't Know JS: this & Object Prototypes
✍ Scribed by Kyle Simpson
- Publisher
- O'Reilly Media
- Year
- 2014
- Tongue
- English
- Leaves
- 174
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. This concise, in-depth guide takes you inside JavaScript’s this structure and object prototypes. You’ll learn how they work and why they’re integral to behavior delegation—a design pattern in which objects are linked, rather than cloned.
Like other books in the “You Don’t Know JS” series, this and Object Prototypes dives into trickier parts of the language that many JavaScript programmers simply avoid. Armed with this knowledge, you can become a true JavaScript master.
With this book you will:
- Explore how the this binding points to objects based on how the function is called
- Look into the nature of JS objects and why you’d need to point to them
- Learn how developers use the mixin pattern to fake classes in JS
- Examine how JS’s prototype mechanism forms links between objects
- Learn how to move from class/inheritance design to behavior delegation
- Understand how the OLOO (objects-linked-to-other-objects) coding style naturally implements behavior delegation
📜 SIMILAR VOLUMES
<div><p>No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. This concise, in-depth guide takes you inside JavaScript’s this structure and object prototypes. You’ll learn how they work and why they’re integral to behavior delegation—a design patte
No matter how much experience you have with JavaScript, odds are you don't fully understand the language. This concise, in-depth guide takes you inside JavaScript's this structure and object prototypes. You'll learn how they work and why they're integral to behavior delegation - a design pattern in
JavaScript语言有很多复杂的概念,但却用简单的方式体现出来(比如回调函数),因此,JavaScript开发者无需理解语言内部的原理,就能编写出功能全面的程序;就像收音机一样,你无需理解里面的管子和线圈都是做什么用的,只要会操作收音机上的按键,就可以收听你喜欢的节目。然而,JavaScript的这些复杂精妙的概念才是语言的精髓,即使是经验丰富的JavaScript开发者,如果没有认真学习也无法真正理解语言本身的特性。正是因为绝大多数人不求甚解,一遇到出乎意料的行为就认为是语言本身有缺陷,进而把相关的特性加入黑名单,久而久之就排除了这门语言的多样性,人为地使它变得不完整、不安全。 “
<p>No matter how much experience you have with JavaScript, odds are you don't fully understand the language. As part of the "You Don't Know JS" series, this concise yet in-depth guide focuses on new asynchronous features and performance techniques—including Promises, generators, and Web Worker