DeepRead
Cover of This & object prototypes

About the book

The second volume of Kyle Simpson's "You Don't Know JS" series, covering how the JavaScript this keyword gets its value and how object prototypes work. It covers the four binding rules for this (default, implicit, explicit, and new), arrow functions, and the [[Prototype]] chain, including property lookup, delegation, and object creation. JavaScript's this is determined by how a function is called, not where it is written, so developers should learn the binding rules rather than rely on guesses or workarounds. The book contends that JavaScript objects link to other objects through delegation, and that classes and inheritance are an imitation layered on top of this rather than the language's native model. It presents object-linking patterns such as OLOO (objects linked to other objects) as a simpler alternative to class-style design, and it argues for understanding the mechanism before choosing a pattern.

Written by Claude from what it knows of this book.

What Hacker News says 40% recommend · 0% critical

02420142016201820192015 peak · 2
This bookAverage book in JavaScript programming

In the commenters’ own words

What Open Library readers say 4.67 from 3 ratings

  1. 52
  2. 41
  3. 30
  4. 20
  5. 10
  • 4 want to read
  • 0 reading
  • 3 have read

Only 3 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2014
ISBN
9781491904152
Editions known
2 at Open Library
Open Library
OL20034683W

Engineering PrototypesJavaScript (Computer program language)Javascript (computer program language)Object-oriented programming (Computer science)

Explore in the mosaic

Read next: its neighbours on the mosaic

  • You Don't Know JS
    Kyle Simpson · 2014 · recommended by 88 people · named together in 4 comments
  • Eloquent Javascript
    Marijn Haverbeke · 2009 · recommended by 226 people · similar by subject and what people say about it
  • JavaScript Patterns
    Stoyan Stefanov · 2010 · recommended by 29 people · similar by subject and what people say about it
  • Pro JavaScript design patterns
    Ross Harmes · 2007 · recommended by 4 people · similar by subject and what people say about it
  • Object-Oriented JavaScript
    Ved Antani · 2017 · recommended by 9 people · similar by subject and what people say about it
  • Functional-Light JavaScript
    Kyle Simpson · 2017 · recommended by 2 people · similar by subject and what people say about it
  • JavaScript
    Douglas Crockford · 2008 · recommended by 72 people · similar by subject and what people say about it
  • Effective JavaScript
    David Herman · 2012 · recommended by 20 people · similar by subject and what people say about it
  • Design Patterns
    Erich Gamma · 1994 · recommended by 95 people · similar by subject and what people say about it
  • Object thinking
    West, David · 2004 · recommended by 12 people · similar by subject and what people say about it
  • Functional JavaScript
    Michael Fogus · 2013 · recommended by 25 people · similar by subject and what people say about it
  • The Principles of Object-Oriented JavaScript
    Nicholas C. Zakas · 2014 · recommended by 6 people · similar by subject and what people say about it
  • Professional JavaScript for Web developers
    Nicholas C. Zakas · 2005 · recommended by 19 people · similar by subject and what people say about it
  • Grokking Simplicity
    Eric Normand · 2021 · recommended by 13 people · similar by subject and what people say about it
  • Secrets of the JavaScript Ninja
    John Resig · 2016 · recommended by 40 people · similar by subject and what people say about it
  • JavaScript
    David Flanagan · 1996 · recommended by 22 people · similar by subject and what people say about it
  • High Performance JavaScript
    Nicholas C. Zakas · 2010 · recommended by 14 people · similar by subject and what people say about it
  • The art of the metaobject protocol
    Gregor Kiczales · 1991 · recommended by 38 people · similar by subject and what people say about it
  • The Nature of Code
    Daniel Shiffman · 2012 · recommended by 73 people · similar by subject and what people say about it
  • Structured design
    Edward Yourdon · 1975 · recommended by 3 people · similar by subject and what people say about it
  • Become what you are
    Alan Watts · 1995 · recommended by 2 people · loosely similar by subject
  • Patterns of software
    Richard P. Gabriel · 1996 · recommended by 31 people · similar by subject and what people say about it
  • Javascript Enlightenment
    Cody Lindley · 2013 · recommended by 7 people · similar by subject and what people say about it
  • DOM Scripting
    Jeremy Keith · 2005 · recommended by 12 people · similar by subject and what people say about it