Goodreads helps you keep track of books you want to read.
Start by marking “You Don't Know JS: Types & Grammar” as Want to Read:
You Don't Know JS: Types & Grammar
Enlarge cover
Rate this book
Clear rating
Open Preview

You Don't Know JS: Types & Grammar

(You Don't Know JS #4)

4.50  ·  Rating details ·  532 ratings  ·  21 reviews
No matter how much experience you have with JavaScript, odds are you don't fully understand the language. As part of the "You Don't Know JS" series, this compact guide explores JavaScript types in greater depth than previous treatments, defining the problems of coercion, demonstrating why types work, and showing developers how to take advantage of those features.

The type
Paperback, 182 pages
Published February 21st 2015 by O'Reilly Media (first published August 25th 2014)
More Details... Edit Details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

To ask other readers questions about You Don't Know JS, please sign up.

Be the first to ask a question about You Don't Know JS

Community Reviews

Showing 1-30
Average rating 4.50  · 
Rating details
 ·  532 ratings  ·  21 reviews

More filters
Sort order
Start your review of You Don't Know JS: Types & Grammar
Aug 17, 2017 rated it it was amazing
Essential reading for anyone working with JavaScript.

Beginners will get a good grounding in the basics of the language types and grammar and it goes into enough detail for experts to learn something too.

I think this is the third or fourth book in the series, but in my opinion, it should be the second. There's nothing in here that you need the second or third books (Scope and Closure, and this & Object Prototypes) to understand.

It's all quite basic, but very important if you want to really
Daniel Gormly
Feb 16, 2017 rated it really liked it
Still an important read but less mind-blowing and more frustrating than the other books due to the persnickety nature of coercion in JS. Kyle's ardent defense of the language is no less admirable but slightly more difficult to stomach here!
Hưng Đặng
Jan 22, 2019 rated it really liked it
Shelves: it-books
The first part of this book is about data types and some quirks of the language with data type. Let me give an evil example:
`0.1 + 0.2 === 0.3 // false`
To be able to understand this peculiarity, we must dig somewhat deeper into floating-point value which IEEE 754 (I can't stand it the first time I heard this name, now I come to term with it) document would mention.
Each data types has their own weirdness that I would not spoil it here.
One thing I like about the book is its recommendations about
May 23, 2019 rated it it was amazing
This book is not as interesting or intriguing as other books in the series because it goes through the basic stuff then it's basically a list of Gotchas and quirks in the language logic. I gave it 5 stars because Kyle's explanations and examples are amazing even if the material itself is dull.
Dec 01, 2017 rated it it was amazing
Excellent and comprehensive.

Although the content isn't organized in a strict way. I would also urge people not to follow author's advices always in terms of style (=== vs ==) and make their own opinions. Also the authors sometimes is too defensive about JS.

But definitely recommended. Did I mention it is free?
Ryan Day
Jul 12, 2017 rated it it was amazing
I've never read a book about JavaScript like this. Simpson puts aside everything you've learned about JavaScript over the years and digs into the spec to find out how the language really works. You Don't Know JS makes JavaScript feel like a new and exciting language again.
Yanjia Li
Jun 21, 2017 rated it it was amazing  ·  review of another edition
Solid and well rounded introduction of low level JS

Literally JavaScript: The Bad Part. However, it helps you understand how JS works underneath those fancy ES5/6/7 syntax. Recommend for experienced JS developers.
Pankaj Phartiyal
May 10, 2017 rated it it was amazing
A must read for Javascript Developers
Alamin Mahamud
Seriously Guys, If you want to learn Javascript this book-series is the best ......
Stop whatever you are doing and read this book if you haven't yet.
Dec 01, 2017 rated it it was amazing
Recommend this to any JS developer.
May 23, 2018 rated it really liked it
Solid overview on the language semantics and grammar. Sometimes a lot of this goes over my head, but I came out with a lot to think about. Overall a solid read!
Ten Zhi
Jan 09, 2019 rated it it was amazing
very good examples and easy pacing for people who are slow to understand concepts.
Apr 01, 2019 rated it really liked it
This book is as great as JavaScript isn't...
Franco Risso
Jun 15, 2016 rated it it was amazing  ·  review of another edition
Shelves: programming
Exceptionally well explained book about the nuances of JS for types and grammar. You can learn here that using implicit coercion is not as bad as you can imagine right now, and remove that lint rule of forcing strict comparison from your project!
Jan 30, 2017 rated it it was amazing  ·  review of another edition
This book is very in-depth to the workings of type coercion and the grammar of javascript. However, it does not go too far to the low level implementation of javascript. Just explained the different standards and how they affect the usage of the language.
Marc Udoff
Nov 25, 2015 rated it really liked it
A good read on JS to understand each of the primitive types, boxing and unboxing, comparison (== vs. ===), and other got you's of the language. Geared towards an intermediate JS programmer more than anyone else. Good to have read once.
Abdulfattah Popoola
Feb 01, 2017 rated it it was amazing
Great insights! Great read!!
Oct 09, 2014 rated it really liked it
Shelves: 2016_read
Good review of fundamentals related to types, coercion and grammar.
Eder Sanchez
Apr 25, 2016 rated it really liked it
Como en todos sus libros hay gotchas interesantes y explicaciones detalladas de los mecanismos del lenguaje, pero la actitud del autor me hace querer odiarlo.
Dave Peticolas
Dec 13, 2015 rated it liked it
Another solid work in this series.
Jul 22, 2015 rated it really liked it
Shelves: coleccion
clarifies trivial misconceptions about JS (especially with castings, operator precedence, etc)
rated it it was amazing
Jun 26, 2016
Rafael Paulo
rated it it was amazing
Jul 06, 2019
rated it it was amazing
Oct 24, 2018
Ashlynn Pai
rated it it was amazing
Jun 27, 2017
Grzegorz Ziółkowski
rated it really liked it
Feb 22, 2016
Himanshu Chauhan
rated it it was amazing
Jan 22, 2017
Christian Fratta
rated it really liked it
May 01, 2018
rated it really liked it
Jun 27, 2019
James Ray
rated it it was amazing
Feb 11, 2015
« previous 1 3 4 5 6 7 8 9 next »
There are no discussion topics on this book yet. Be the first to start one »

Readers also enjoyed

  • Eloquent JavaScript: A Modern Introduction to Programming
  • JavaScript: The Good Parts
  • Secrets of the JavaScript Ninja
  • JavaScript Patterns
  • Clean Code: A Handbook of Agile Software Craftsmanship
  • JavaScript: The Definitive Guide
  • Grokking Algorithms An Illustrated Guide For Programmers and Other Curious People
  • The C Programming Language
  • Learning React: Functional Web Development with React and Redux
  • The Principles of Object-Oriented JavaScript
  • The Road to learn React
  • The Clean Coder: A Code of Conduct for Professional Programmers
  • JavaScript and jQuery: Interactive Front-End Web Development
  • Node.js Design Patterns
  • Design Patterns: Elements of Reusable Object-Oriented Software
  • Web Performance in Action
  • The Pragmatic Programmer: From Journeyman to Master
  • Ry's Git Tutorial
See similar books…

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »
Kyle Simpson is an Open Web Evangelist from Austin, TX, who's passionate about all things JavaScript. He's an author, workshop trainer, tech speaker, and OSS contributor/leader.

Other books in the series

You Don't Know JS (6 books)
  • You Don't Know JS: Up & Going
  • You Don't Know JS: Scope and Closures (You Don't Know JS, #2)
  • You Don't Know JS: this & Object Prototypes
  • You Don't Know JS: Async & Performance
  • You Don't Know JS: ES6 & Beyond