ajmalafif
8/27/2016 - 3:13 PM

[book] – personal notes from Eloquent Javascript (second edition)

[book] – personal notes from Eloquent Javascript (second edition)

Eloquent JavaScript (second edition)

My personal tips & takeaways from this book (something I didn't know before i read it).

Chapter 1

3 special numbers

infinity,-infinity and NaN.

Unary operators

The minus operator can be both binary and unary operators.

> console.log(typeof 4.5)
number

Comparisons (Boolean values)

> console.log("Zoro" < "Luffy")
false # more or less alphabetical

> console.log(NaN == NaN)
false # Not a number nosensical computation doesn't equal other NaN

Logical operators

and,or & not