Jump to ratings and reviews
Rate this book

How Javascript Works

Rate this book
Douglas Crockford starts by looking at the fundamentals: names, numbers, booleans, characters, and bottom values. JavaScript’s number type is shown to be faulty and limiting, but then Crockford shows how to repair those problems. He then moves on to data structures and functions, exploring the underlying mechanisms and then uses higher order functions to achieve class-free object oriented programming. The book also looks at eventual programming, testing, and purity, all the while looking at the requirements of The Next Language. Most of our languages are deeply rooted in the paradigm that produced FORTRAN. Crockford attacks those roots, liberating us to consider the next paradigm.He also presents a strawman language and develops a complete transpiler to implement it. The book is deep, dense, full of code, and has moments when it is intentionally funny.

279 pages, Paperback

Published October 18, 2018

39 people are currently reading
194 people want to read

About the author

Douglas Crockford

6 books99 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
22 (35%)
4 stars
23 (37%)
3 stars
10 (16%)
2 stars
5 (8%)
1 star
2 (3%)
Displaying 1 - 4 of 4 reviews
Profile Image for Phil Eaton.
119 reviews296 followers
January 11, 2019
Nuggets of solid information (on integers, JSON, Unicode, etc.) pretending to be a seminal computer science read.
Profile Image for Kimee.
332 reviews11 followers
February 1, 2020
Meh. A colleague recommended this, and the book pitch does read as if it imparts a lot of useful fundamental knowledge. While it does some of that, most of the book reads more like Crockford's personal preferences and opinions.

If you're someone really wanting to understand JavaScript, I'd stay away from this. So much of the book is about how a language better than JavaScript _could_ work, which I'm sure is wonderful for people looking to learn and discuss that, but I'm not there right now.

I have a feeling that "You don't know JS" will be more what I'm looking for, but I haven't yet read it. Can't wait to compare.
3 reviews
June 30, 2024
Interesting ideas explored to completion. Style: annoying, typesetting: annoying.
Profile Image for Stanislaw Baranski.
28 reviews12 followers
June 24, 2020
Very insightful book, I learned a lot about JS objects/prototypes/inheritance in non OOP language. I enjoyed it, I tolerate the snake_case which is anti standard in JS world. I get the idea of using new words (just to show why the new paradigms are hard to shift, when if they are better), but I don't like the concept of copy pasting whole library code.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.