Unraveling JavaScript Prototypes
summary
25 minutes of concrete claims and live code: shows that prototypes exist for every function since 1994, that arrow functions have no prototype and so are not constructors, draws a reusable diagram mapping objects to product.prototype and p.__proto__, and proves p.__proto__ links to constructor.prototype with console outputs. Demonstrates read vs write behavior on the prototype chain, gives an inheritance exercise using only proto prototype constructor, and shares slides for later.
AI-written summary · about
chapters (11)
- 0:00JavaScript prototypes intro
- 1:06Functions and prototypes
- 2:09Arrow functions no prototype
- 3:54Constructor invocation pattern
- 7:06Objects not created from prototype
- 8:29Prototype object creation
- 12:31Constructor-prototype relationship
- 15:27Understanding __proto__
- 17:36Prototype chain operations
- 19:47Inheritance with prototypes
- 20:29Speaker and resources
related talks
45mJavaScript Prototypes Behind the Scenes
01h 52mPro.Prototypes Workshop
28mA Brief History of Prototypes
28mJavaScript inheritance: beyond the basics
39mJavascript for people who didn't learn Javascript
50mMetaprogramming in JavaScript
54mPatterns for Programming in JavaScript
51mAdvanced Javascript Basics for Web Developers
