Gabriel Simoes

Notes on "You Don't Know JS" by Kyle Simpson

A great book for learning JS internals.

The best way to understand and avoid language “gotchas” is by understanding what causes them. It’s also a great book to learn how to optimize your JS programs with very little effort.

Those notes cover the whole book series and are meant as a review, so I can learn things more effectively and quickly review some details.

Up & Going

This first book is great for getting started into the series, specially if you have a shallow understanding of JS internals. That is because each of the other books will assume you have some basic understanding of the language mechanisms explained deeply in the other books of the series.

But if you already have a good understanding of the language, maybe it’s best to just skip to the other books.

Always use the "use strict"; in your code. Keeps code safer and optimized.

Scope & Closures

Scope and Lexical Scope

Function and Block Scopes

Closures

Arrow Functions (ES6)

this & Object Prototypes

this

Objects

Mixins

Prototypes

Behavior Delegation/OLOO (objects-linked-to-other-objects)

ES6 class

Types & Grammar

Types

Values

Arrays

Strings

Numbers

void operator

Value vs. Reference

Natives

Coercion

Explicit Coercion

Implicit Coercion

Loose/Strict Equals

Grammar

Async & Performance

Async

Performance

ES6 & Beyond

I haven’t read this book yet.