JavaScript inheritance: beyond the basics
summary
Shows a tiny ES5 object exemplars library (under 50 lines) that creates types via prototypes not constructors and it works as a drop‑in pattern using Object.create and an extend/new API; proves classes are syntactic sugar by translating ES6 class syntax to constructor + prototype and formalizes super calls via the home object semantics; documents upcoming inclusion of __proto__ for getting/setting prototypes, and notes Traceur/TypeScript as practical transpiler tools.
AI-written summary · about
chapters (12)
- 0:00Start
- 0:46What you will learn?
- 4:41Ist Examples: function exemplar, object exemplar
- 5:55Function exemplars: constructor versus prototype
- 9:12The example as code
- 11:20Proto js: the code
- 11:45ECMAScript 6 classes
- 15:08Super-calls
- 17:57Where does HomeObject come from?
- 20:17Use case: get the prototype
- 21:43Use case: subtyping Array
- 23:13Caveat: objects as maps from strings to values








