Errata
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 |
---|---|---|---|---|---|
Chapter 11: Extreme Javascript Challenge Revisited |
In the answer for Specimen #2, the following line should NOT have the parenthesis because it is supposed to be returning a function reference: Note from the Author or Editor: |
David Greiman | Apr 13, 2014 | May 30, 2014 | |
Printed | Page n/a cover |
"Avoid embarrassing typing conversion mistakes" should read "Avoid embarrassing type conversion mistakes". Note from the Author or Editor: |
Anonymous | Mar 25, 2016 | Mar 10, 2017 |
Printed | Page 3 1st image |
The image of HTML code is missing the ending </head> tag. Note from the Author or Editor: |
Vincent Yang | Jul 10, 2014 | Aug 22, 2014 |
9 Chapter 9 setInterval Exercise |
I don't have a page number because I am using SafariOnlineBooks on my IPAD. In Chapter 9 there is an exercise that uses setInterval to display the value Tick or Tock. The output should say Tick then tock and so forth. The example in the book only shows the value Tick. At the end of the chapter where the answers are, the values are correct. Note from the Author or Editor: |
Anonymous | Apr 18, 2016 | Mar 10, 2017 | |
Printed, PDF | Page 15 Annotated code statement near top |
The annotation "And this whole thing is an expression" is too long - it includes the semicolon that terminates the statement. Instead, it should stop just before the semicolon. Note from the Author or Editor: |
Jeff Straw | May 30, 2014 | Aug 22, 2014 |
Mobi | Page 40 Several places |
In the "Sharpen Your Pencil" solution, all of the untrue values are listed as "Flase". |
Scott Hankin | Apr 04, 2014 | Apr 09, 2014 |
Printed | Page 53 The one line of JS code and corresponding image |
The string provided to the prompt function is different from the string in the prompt dialog box that displays when prompt is called. The string in the code is missing the word ?from,? which appears in the dialog box between ?number? and ?0?6.? The same assignment statement also appears on p. 52, second to last line of code. Note from the Author or Editor: |
Vincent Yang | Jul 18, 2014 | Aug 22, 2014 |
Printed | Page 53 1st paragraph, last line |
A space appears between the word ?anything? and the comma. Note from the Author or Editor: |
Vincent Yang | Jul 18, 2014 | Aug 22, 2014 |
Printed | Page 62 First paragraph, last sentence |
The sentence reads ?So, you see, these conditions can get complex.? The word ?conditions? should read ?conditionals.? Note from the Author or Editor: |
Vincent Yang | Jul 25, 2014 | Aug 22, 2014 |
Printed | Page 63 Last annotation |
The annotation reads ?Notice we?re using parentheses to group the conditions together?? The word ?conditions? should read ?conditionals.? Note from the Author or Editor: |
Vincent Yang | Jul 25, 2014 | Aug 22, 2014 |
Printed | Page 63 1st paragraph |
In the sentence that reads ??we can combine boolean operators in multiple ways?,? the words ?boolean operators? should read ?conditionals.? Note from the Author or Editor: |
Vincent Yang | Aug 09, 2014 | Aug 22, 2014 |
Printed | Page 77 Annotation near middle of page |
In the annotation that begins with ?But, with the boolean OR operator we can combine the tests so that if location matches any of location1, location2 or location3??, the word ?location? should read ?guess? (i.e., the variable). Note from the Author or Editor: |
Vincent Yang | Jul 22, 2014 | Aug 22, 2014 |
Printed | Page 88 4th block from end |
There is a posting (from Mr. Yang) that is still under _unconfirmed_. Note from the Author or Editor: |
Raphaeae | Jul 03, 2015 | Mar 10, 2017 |
Page 120 solution, boxes on the right |
Parameters are local variables. So width, height, x1, y1, x2, y2 and r should be added to the Locals box. Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 151 comments on bottom of page code |
"Creates another new item in the next open index" Well since you've introduced sparse arrays I think "next open index" could be misunderstood here. My understanding is that it's always after the last array element. Note from the Author or Editor: |
Dave Murley | Apr 28, 2014 | May 30, 2014 |
Page 164, 171 [164] right after pseudocode/ [171] 1st and 5th line of code, |
pg 164 and 171 Note from the Author or Editor: |
Anonymous | May 07, 2014 | May 30, 2014 | |
Page 164 pseudocode, function parameters and the 1st IF statement |
It should read "SCORES" instead of "SCORE". Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 171 "BONUS" section on bottom, and related code file |
The alternate solution in the bubbles2.html file has an error. The last line of the getMostCostEffectiveSolution2 function reads cost = costs[i];. It should read cost = costs[solutionIndex];. Note from the Author or Editor: |
Greg Foley | Jul 05, 2014 | Aug 22, 2014 |
ePub | Page 175 Immediately under section heading "Implementing parseGuess" |
This is in Chapter 8. I realize that the pagination of the epub version appears to be about half of the printed book, so I am assuming that page "175" in my epub must correspond approximately to page "350" in the printed version? Note from the Author or Editor: |
Bob Kreycik | Aug 11, 2016 | Mar 10, 2017 |
Page 198 drive method inside the fiat object below the first paragraph |
It should have been alert("Zoom zoom!"); instead of alert.log("Zoom zoom!"); Note from the Author or Editor: |
Anonymous | May 07, 2014 | May 30, 2014 | |
Printed | Page 221 dog.bark listed as answer at bottom of page. |
dog.bark listed as answer at bottom of page. Never assigned, bark was and should be answer as printed. Else assign woofs to dog.bark Note from the Author or Editor: |
Dave Murley | Apr 28, 2014 | May 30, 2014 |
Page 250 Heading |
"event hander" should read "event handler" Note from the Author or Editor: |
Anonymous | Jul 02, 2014 | Aug 22, 2014 | |
Page 267,308 the last item |
"I?m the value that can?t be assigned to a property when you create an object." (undefined) Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 289 annotation of top figures |
"This reference" and similar point to objects Note from the Author or Editor: |
Dave Murley | May 01, 2014 | May 30, 2014 |
Printed, PDF | Page 292 Top half of page |
Boolean value false is missing from the list of falsey values, and the text talks of five, though it should say there are six. See also page 306. Note from the Author or Editor: |
Jeff Straw | Jul 17, 2014 | Aug 22, 2014 |
Page 298 all 3 console.logs |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed, PDF | Page 300 bottom left above the "bowl" |
Possible misunderstanding: Note from the Author or Editor: |
Anonymous | Jul 08, 2014 | Aug 22, 2014 |
Page 306 Deutschland |
The bullet point regarding the five falsey values states that false is falsy. It should read, NaN is falsey. Note from the Author or Editor: |
Thomas L. | May 21, 2014 | Aug 22, 2014 | |
Printed | Page 322 annotation of lower right cell |
"06" should be "60" Note from the Author or Editor: |
Dave Murley | May 02, 2014 | May 30, 2014 |
Printed | Page 322 Center of page "This cell has id='06' |
The lower left corner of the html table is identified as cell "06". I think this may be incorrect. I think it should be cell id "60". Note from the Author or Editor: |
bill brouillette | Jun 23, 2014 | Aug 22, 2014 |
Page 322 annotation under the table |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 326 CSS rules at the bottom of the page |
Probably should add "transparent" to .hit and .miss, Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 343 code at the top of the page and code at the bottom of the page |
Missing var: Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 352 code at bottom |
Not exactly error but firstChar seems to be used as a global through page 354. It's eliminated entirely in final code. Oh, and I'm not sure what a "non-null" string is. Is there such a thing as a "null string"? Note from the Author or Editor: |
Dave Murley | May 03, 2014 | May 30, 2014 |
Page 352 step #3 |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 356 annotation at the bottom of the page |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 365 3rd line in code |
"var row, col;" Note from the Author or Editor: |
Dave Murley | May 05, 2014 | May 30, 2014 |
Printed | Page 366 United States |
To generate the integers 0-4 for the col shouldn't the multiplier be 5 instead of 4 (this.boardSize -2)? The same applies to page 367: this.boardSize - this.shipLength + 1. Note from the Author or Editor: |
David W. Wood | May 18, 2014 | Aug 22, 2014 |
Printed | Page 368 in the code for the collision method |
The code in the book says we define the variable: Note from the Author or Editor: |
Mike | Jun 29, 2016 | Mar 10, 2017 |
Printed | Page 375 solution, 2/3 down the page |
The solution says all six guesses are hits. The 1st, 3rd, and 5th ones are actually misses. Note from the Author or Editor: |
Greg Foley | Jul 29, 2014 | Aug 22, 2014 |
Page 389 2nd last annotation right |
Annotation reads: "We create a function init. and assign it to the onload handler?". Note from the Author or Editor: |
Anonymous | Jul 20, 2014 | Aug 22, 2014 | |
Page 391 last sentence above "there are no dumb questions" |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 399 last paragraph, 2nd sentence |
It should read either Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 406 code for showCoords |
In the function showCoords the name of the local variable should be "coords" instead of "map": Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed | Page 412 1st code block |
window.onload is now set to a anonymous function instead of to an init function as instructed on p. 389 and 390, but the notation next to the code states "This code is just as we wrote it before. No changes here..." Note from the Author or Editor: |
Tom Odon | Aug 04, 2016 | Mar 10, 2017 |
Printed | Page 413 Third question |
The Question asked about showAnswer defining reblur "in its code". As listed in text, it's separate. That works. I tried inserting reblur's definition inside showAnswer and that worked too. Note from the Author or Editor: |
Dave Murley | May 07, 2014 | May 30, 2014 |
Page 413 1st sentence in the last question |
It should read "setTimeout" instead of "setTmeout". Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 415 Code line 7 |
Inconsistency between book and example code: Note from the Author or Editor: |
Anonymous | Jul 22, 2014 | Aug 22, 2014 | |
Page 420 Crossword, 19 across |
clue 19 across: "The event object for a mouseover event has this property for the X position of the mouse." Note from the Author or Editor: |
Anonymous | Jul 22, 2014 | Aug 22, 2014 | |
Page 420 21 across |
change "time event" to "timer event" Note from the Author or Editor: |
Anonymous | Jul 22, 2014 | Aug 22, 2014 | |
Page 443 Brain Power, bottom right |
"Think about how you?d write code to perform these three tasks (no-fly list, paid customers and a list of passengers)?" Note from the Author or Editor: |
Anonymous | Aug 05, 2014 | Aug 22, 2014 | |
Page 444 annotation for code example (printPassenger) |
Annotation for printPassengers(passengers) : Note from the Author or Editor: |
Anonymous | Aug 05, 2014 | Aug 22, 2014 | |
Page 444 annotation under the 1st block of code |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 444 3rd block of code, printPassengers function |
Because of the "return false;" the function will print only the first name. Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 445 1st sentence |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 447 1st console.log(...) |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed, PDF | Page 449 Definition of function fun near the top |
Minor point - the semicolon is unnecessary at the end of the fun function declaration. Note from the Author or Editor: |
Jeff Straw | Jul 23, 2014 | Aug 22, 2014 |
Page 451 7th para (Jim) |
Jim: "Have you looked at the setTimeout API": Note from the Author or Editor: |
Anonymous | Jul 22, 2014 | Aug 22, 2014 | |
Page 454 1st annotation for the serveCustomer function |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 454 annotation for the 2nd alert |
It should read Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 468 code for the printPassenger function |
if (passenger.paid === true) { Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Printed, PDF | Page 475 near bottom of page |
Extra "s" in "JavasScript" Note from the Author or Editor: |
Jeff Straw | Jul 23, 2014 | Aug 22, 2014 |
Printed | Page 479 cookieAlarm function delcaration |
this is a function declaration -- ending semi-colon not needed. Note from the Author or Editor: |
Anonymous | Jan 12, 2016 | Mar 10, 2017 |
Printed | Page 483 code |
Missing var on for loops. |
Elisabeth Robson |
Jul 25, 2014 | Aug 22, 2014 |
Printed | Page 484 3rd from bottom paragraph |
"Function declarations create functions that are defined everywhere in your code." Note from the Author or Editor: |
Dave Murley | May 15, 2014 | Aug 22, 2014 |
Printed | Page 505 "Update..." annotation |
Seems like the annotation may have moved up the page, now points to </style> when the script section was intended. Note from the Author or Editor: |
Dave Murley | May 14, 2014 | Aug 22, 2014 |
Page 517 top right |
soluton -> solution :) Note from the Author or Editor: |
J�rgen W. Lang | Aug 20, 2014 | Mar 10, 2017 | |
Page 523 code for rocketCar and tbird objects |
There is a comma on the left side of the started property. Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 536, 558 the drive method in the exercise and solution |
On page 536 the drive method prints the messages to the console, Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 542 example code line 7 |
Duplicate closing tags in example file: Note from the Author or Editor: |
J�rgen W. Lang | Aug 21, 2014 | Mar 10, 2017 | |
Page 550, 551 3rd annotation on page 550 and answer for the 1st question on page 551 |
Page 550: "If you pass more than one argument, this creates an array holding the values you pass it." Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 561 top right |
Image is covering up all but last three letters of the page heading. Fix by removing page heading from this page, or adjust image. |
Elisabeth Robson |
Mar 24, 2014 | May 30, 2014 | |
Page 566 code for the bark method |
On page 566 the dogs are barking using alerts, Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 566 bottom right corner, top code comment |
The comment says: "…each dog has its own bark function…". Since we're talking objects here, should this not be "bark method" instead? Note from the Author or Editor: |
Jørgen W. Lang | Aug 22, 2014 | Mar 10, 2017 | |
Printed | Page 574 solid line code magnets |
You only have four, five are needed. Note from the Author or Editor: |
Dave Murley | May 18, 2014 | Aug 22, 2014 |
Printed, PDF | Page 574, 615 In owner magnets |
Values for the owner property - Dr. Morbius and George Jetson - are strings, so they should be enclosed in quotation marks. Note from the Author or Editor: |
Jeff Straw | Aug 07, 2014 | Aug 22, 2014 |
Printed | Page 579 the whole page |
The only info on Robby and Rosie seems to be the Code Magnets on page 574. Seems like info on the methods definitions are missing in the text as only "code goes here" comments are present. They are in the completed solution on page 613. Note from the Author or Editor: |
Dave Murley | May 18, 2014 | Aug 22, 2014 |
Printed, PDF | Page 581 (and 583, 617) Code 1/3 from top |
An extension of / follow-up to Dave Murley's posting of May 18, 2014: Semicolons are missing at the ends of several assignment statements. For example, from page 581, Note from the Author or Editor: |
Jeff Straw | Aug 08, 2014 | Aug 22, 2014 |
Printed | Page 583, 617 assignment statements, sample output |
Per page 13 in the regular text assignment statements are terminated with semicolons. None are used in the exercise, the solution or the download code. Note from the Author or Editor: |
Dave Murley | May 18, 2014 | Aug 22, 2014 |
Printed | Page 597 annotation 2/3 down page |
" We're adding all these properties ..." points to functions which you have been careful to call methods and separately list in your new format object diagram. Note from the Author or Editor: |
Dave Murley | May 19, 2014 | Aug 22, 2014 |
Printed | Page 597 First line in the gray box |
This line: Note from the Author or Editor: |
Jeff | Dec 23, 2016 | Mar 10, 2017 |
Page 610, 611 the sentences array and JavaScript console |
The "Let's touch base..." sentence should end with full stop. Note from the Author or Editor: |
Nikolai Lavsky | Aug 05, 2014 | Aug 22, 2014 | |
Page 619 annotation top right, 2nd sentence |
Original: "…so all robots will inherit these methods." Note from the Author or Editor: |
Jørgen W. Lang | Aug 27, 2014 | Mar 10, 2017 | |
Page 621 code for the palindrome method |
If a string is a palindrome and has an even length, Note from the Author or Editor: |
Leonid Popov | Sep 19, 2014 | Mar 10, 2017 | |
Printed | Page 633 last annotation on page |
the word "of" is missing from " ... part the string ..." Note from the Author or Editor: |
Dave Murley | May 22, 2014 | Aug 22, 2014 |
9999 |
http://techbus.safaribooksonline.com/book/programming/javascript/9781449340124/7dot-types-equality-conversion-and-all-that-jazz-serious-types/chair_wars_left_parenthesisor_how_really_html Note from the Author or Editor: |
David Greiman | Apr 10, 2014 | May 30, 2014 |