Types & Grammar
Introduction
1.
Foreword
2.
Chapter 1: `this` Or That?
2.1.
Why `this`?
2.2.
Confusions
2.3.
What's `this`?
2.4.
Review (TL;DR)
3.
Chapter 2: `this` All Makes Sense Now!
3.1.
Call-site
3.2.
Nothing But Rules
3.3.
Everything In Order
3.4.
Binding Exceptions
3.5.
Lexical `this`
3.6.
Review (TL;DR)
4.
Chapter 3: Objects
4.1.
Syntax
4.2.
Type
4.3.
Contents
4.4.
Iteration
4.5.
Review (TL;DR)
5.
Chapter 4: Mixing (Up) "Class" Objects
5.1.
Class Theory
5.2.
Class Mechanics
5.3.
Class Inheritance
5.4.
Mixins
5.5.
Review (TL;DR)
6.
Chapter 5: Prototypes
6.1.
`[[Prototype]]`
6.2.
"Class"
6.3.
"(Prototypal) Inheritance"
6.4.
Object Links
6.5.
Review (TL;DR)
7.
Chapter 6: Behavior Delegation
7.1.
Towards Delegation-Oriented Design
7.2.
Classes vs. Objects
7.3.
Simpler Design
7.4.
Nicer Syntax
7.5.
Introspection
7.6.
Review (TL;DR)
8.
Appendix A: ES6 `class`
9.
Appendix B: Acknowledgments
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
Types & Grammar
You Don't Know JS:
this
& Object Prototypes
Purchase digital/print copy from O'Reilly