getify / You-Dont-Know-JS

A book series on JavaScript. @YDKJS on twitter.
Other
179.29k stars 33.48k forks source link

Setting and shadowing properties in chapter 5 prototypes #1710

Closed anurag001 closed 3 years ago

anurag001 commented 3 years ago

Edition: 1st

Book Title: this and Object Prototypes

Chapter: 5 - Prototypes

Section Title: Setting and shadowing properties

Problem: Writable should be true in the 1st point, when foo is not already on myObject, but it is at a higher level of the prototype chain. It's written as marked as read-only then, it writable should be true. Its typo I guess.

getify commented 3 years ago

Dupe.