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
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
Brief outline
【One-Line Pitch】
No matter how much experience you have with javascript, odds are you don’t fully understand the language. This concis…
【Book Arc】
- **Opening (~0%–12%)**: This concise, in-depth guide takes you inside javascript’s this structure and object prototypes.; they work and why they’re integral to behavior delegation— a design pattern in which objects are linked, rather than cloned.
- **Early (~12%–35%)**: Furthermore, we eschew the common advice to retreat when the road gets rough.; urn context.name.toUpperCase();
- **Middle (~35%–65%)**: insulates our pro‐ gram’s global object from side effects.; s binding (whatever it is) from its enclosing function call.
- **Late (~65%–88%)**: x (or seven, depending on your perspective) primitive types.; types of vehicles (the “planes, trains, and automobiles”).
- **Ending (~88%–100%)**: // create an object linked to anotherObject var myObject Object.create( anotherObject );; ccurs, and thus these objects don’t end up totally separate and disconnected from each other, but rather, quite linked.
【Key Takeaways】
- **This concise** (Opening): This concise, in-depth guide takes you inside javascript’s this structure and object prototypes.
- **they work and why they…** (Opening): they work and why they’re integral to behavior delegation— a design pattern in which objects are linked, rather than cloned.
- **nguage that I needed t…** (Opening): nguage that I needed to pay closer attention to.
- **Furthermore** (Early): Furthermore, we eschew the common advice to retreat when the road gets rough.
- **urn context.name.toUpp…** (Early): urn context.name.toUpperCase();
- **// 4 Instead of avoidi…** (Early): // 4 Instead of avoiding this, we embrace it.
【Reading Tips】
- Use Passage locations below to jump into the text and set reading anchors
- Chinese and English guides are each generated once, then served from local cache without calling the model again
【Coverage Limits】
Compressed outline without the model (~32 index chunks). Full structured guide needs AI available.
Page 1
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’...
oks Online offers a range of product mixes and pricing pro‐ grams for organizations, government agencies, and individuals. Sub‐ scribers have access to thous...
find the call-site and inspect it to see which rule applies. But, what if the call-site has multiple eligible rules? There must be an order of precedence to...
rance. The engine stores values in implementation-dependent ways, and may very well not store them in some object container. What is stored in the container...
property enumerable: true } myObject.a; // 2 54 | Chapter 3: Objects It appears that the in operator will check for the existence of a value inside a contain...
fully an essentially perfect copy. And then the builder can move to the open lot next door and do it all over again, creating yet another copy. The relations...
{ a: 2 // create an object linked to `anotherObject` var myObject = Object.create( anotherObject ); myObject.a; // 2 We will explain what Object.create(..) d...
ct by default (at declaration-time on line 1 of the snippet!) gets a public, nonenumerable (see Chapter 3) property called .constructor, and this property is...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
You Dont Know JS this Object Prototypes (Kyle Simpson)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
You Dont Know JS this Object Prototypes (Kyle Simpson)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment