small medium large xlarge

The latest version of the book is P1.0, released 8 months ago. If you've bought a PDF of the book and would like to update it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (20-Apr-18)
#83028
PDF page: 15

In the second code block on the page, the call should be to function yell instead of greet:
greet('Pankaj');--Jason Chapin

  • Reported in: B3.0 (07-Apr-18)
#82968
PDF page: 25
Last paragraph, 4th sentence: change "... you can rely instead OF the language feature to limit scope." to "... rely instead ON the ...". Actually ...more...
  • Reported in: B3.0 (07-Apr-18)
#82972
PDF page: 25
My apologies. The above typos for pages 25 and 26 were for a different book with a similar name. Please remove all these messages for me.--George S. C...more...
  • Reported in: B3.0 (07-Apr-18)
#82969
PDF page: 26

"code is easier to reason" -> "code is easier to reason about"--George S. Cowan

  • Reported in: P1.0 (20-Apr-18)
#83027
PDF page: 33
The JavaScript method for adding an item to the beginning of an array is written as being `array.shift()`, when it is actually `array.unshift()`. The ...more...
  • Reported in: P1.0 (09-May-18)
#83078
PDF page: 41

The 3rd line of the 2nd paragraph:
they are really are that flexible

You should omit one of "are" s
--Naoki Hashimoto

  • Reported in: P1.0 (09-May-18)
#83077
PDF page: 71

The 1st line of the 2nd paragraph from the bottom:
means means -> means
--Naoki Hashimoto

  • Reported in: P1.0 (25-Jul-18)
#83416
PDF page: 80
The following statement strikes me as just a bit too stringent: "Though you can chain multiple ternary expressions together, you should avoid doing so...more...
  • Reported in: P1.0 (25-Jul-18)
#83417
PDF page: 80
Regarding #82416, my example code got mangled even more than I anticipated. Please see o10c7gda on jsfiddle for a formatted example. Thanks! --Ted...more...
  • Reported in: P1.0 (09-May-18)
#83076
PDF page: 94

the 1st line of the 2nd paragraph from the bottom:
the size array -> the size of array/the array size ?--Naoki Hashimoto

  • Reported in: P1.0 (09-May-18)
#83075
PDF page: 194

In the second example from simple.js:
[...getCairoTrilogy] -> [...getCairoTrilogy()]

(you should add parentheses)--Naoki Hashimoto

  • Reported in: P1.0 (09-May-18)
#83074
PDF page: 214

on 2nd paragraph line 4:
to to reduce -> to reduce--Naoki Hashimoto