Errata

You Don't Know JS: Types & Grammar

Errata for You Don't Know JS: Types & Grammar

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 42
1st code snippet

The line:

b; "foo"

should be:

b; // "foo"

Kyle Simpson
Kyle Simpson
 
Feb 17, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 55
1st paragraph

"can generally can" should drop the second "can" so it's just "can generally"

Kyle Simpson
Kyle Simpson
 
Feb 13, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 55
2nd paragraph

this internal [Class]]

should be:

this internal [[Class]]

Kyle Simpson
Kyle Simpson
 
Feb 15, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 55
1st paragraph

Values that are typeof of "object"

should be:

Values that are typeof "object"

Kyle Simpson
Kyle Simpson
 
Feb 15, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 63
next to last paragraph

This sentence:

By far the most common reason you construct a date object is to get the current Unix timestamp value (an integer number of seconds since Jan 1, 1970).

Should change to:

By far the most common reason you construct a date object is to get the current timestamp value (a signed integer number of milliseconds since Jan 1, 1970).



Changes:

* drop "Unix"
* change "an" to "a signed"
* change "seconds" to "milliseconds"

Kyle Simpson
Kyle Simpson
 
Mar 07, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 91
2nd paragraph

the only value that can you can perform

should be:

the only value that you can perform

Kyle Simpson
Kyle Simpson
 
Apr 07, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 92
next to last paragraph

"accross" should be "across" (no quotes)

Kyle Simpson
Kyle Simpson
 
Mar 18, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 94, 95
several paragraphs

Please see the diff view here for the changes that need to be made:

https://github.com/getify/You-Dont-Know-JS/commit/39947c7190486cbeb7f74c8ae3188d3121827971

Kyle Simpson
Kyle Simpson
 
Mar 07, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 96
third to last paragraph

ridiulousness > ridiculousness

Kyle Simpson
Kyle Simpson
 
May 21, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 103
third to last paragraph

"crticics" should be "critics"

Kyle Simpson
Kyle Simpson
 
Mar 08, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 124
the last two paragraphs of the page

In both paragraphs, the word "equitable" should be "equatable".

Kyle Simpson
Kyle Simpson
 
Aug 29, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 181
last code snippet at bottom

This line:

this[this.length-1] = item;

Should be:

this[this.length] = item;

Kyle Simpson
Kyle Simpson
 
Mar 15, 2015 
, Printed, PDF, ePub, Mobi, , Other Digital Version
Page 182
code snippet at bottom

This line:

this[this.length-1] = item;

Should be:

this[this.length] = item;

Kyle Simpson
Kyle Simpson
 
Mar 15, 2015