Modern Javascript:\ Develop and Design
Unfortunately, despite the best efforts of myself, the technical editor, the copy editor, the line editor, the proofreader, and despite the multiple revisions, errors still occur. This page lists all the errors found in the book since it went to print.
Note: errors are corrected in subsequent printings and therefore your particular copy may not contain all of the following. You may also be experiencing problems not caused by a mistake in the book. If so, you may find the solution to your problem by using the book’s corresponding forum. Significant changes in the technology will be addressed there and you can also find problems and solutions encountered by other readers.
Known Errors in the Book:
Click on a column heading to sort the table by that column. ChapterPage #DescriptionDate Added1: (Re-)Introducing JavaScript10The last sentence should begin “This is just one…“August 28, 20121: (Re-)Introducing JavaScript5In the second paragraph, “prototype” is misspelled.March 2, 20121: (Re-)Introducing JavaScript19In Figure 1.7, the arrows for steps 1 and 4 are pointing the wrong way. Ugh!March 2, 20123: Tools of the Trade76Near the end of the third paragraph, it should say “the latest versions of IE can do that too” (“too”, not “tool”).March 14, 20123: Tools of the Trade77The very last word should be “Firefox”, not “Firebox”.March 20, 20124: Simple Variable Types107The second line of the first paragraph should say Step 11, not Step 12.April 5, 20124: Simple Variable Types108The third use of num.toFixed() should not use an argument.March 20, 20124: Simple Variable Types113The fourth line of code has an extra opening parentheses before email.value.December 30, 20124: Simple Variable Types118The code in Step 9 should actually refer to the element with an id value of theForm, which is what the corresponding downloadable code uses.March 14, 20124: Simple Variable Types120The HTML form should not use the required attribute for the Formatted Name/result text input.March 20, 20124: Simple Variable Types123The first line of code should refer to parseInt(), not parseFloat().August 28, 20125: Using Control Structures137The second block of code examples should use the or operator (||) not and (&&). Ugh!March 14, 20126: Complex Variable Types181The first paragraph accidentally capitalizes the “z” in getTimezoneOffset().August 28, 20126: Complex Variable Types182The first line of code is missing the “new” in var now = new Date();.December 30, 20126: Complex Variable Types197In the code under Step 7, the two references to numbers should actually be message. Now sure what happened there!March 14, 20126: Complex Variable Types201In the nested for loops in the sidebar, the outer loop is missing the “1” in i < count1.March 20, 20126: Complex Variable Types206The use of join() as the second-to-last line of code should use .June 13, 20126: Complex Variable Types210The two uses of my in the discussion of referencing object properties should be me.May 1, 20126: Complex Variable Types210The second code example should be if (typeof chapter.startPage == ’number’) {.June 14, 20127: Creating Functions237Due to some sort of massive mental block on my part, I wrongly used “numbers” in Step 4 of random.js when it should be “message”.December 30, 20127: Creating Functions245The second to the last paragraph should begin “That code assigns to the unload property…".August 28, 20127: Creating Functions251Due to some sort of massive mental block on my part, I wrongly used “numbers” in Step 3 of words.js when it should be “message”.December 30, 20128: Event Handling280The code in epoch.js should say “milliseconds”, not “seconds”. This also affects Figures 8.1 and 8.2December 30, 20128: Event Handling293In the function definition in Step 5, the e argument doesn’t need to be there.March 14, 20128: Event Handling298The fourth paragraph should begin “For browsers that do support…".August 28, 20128: Event Handling306The penultimate bullet should say “for the form-submission event”.December 30, 20129: JavaScript and the Browser328In the third paragraph of the sidebar, the reference to “window.length” should be to window.frames.length.April 3, 20139: JavaScript and the Browser345The fourth code example should be of replaceChild().August 28, 20129: JavaScript and the Browser363In step 8, it’d be better if the returned value was from the value variable, as the decodeURIComponent() function was already applied to it.June 13, 20129: JavaScript and the Browser368In Step 11, the function call in the third line of code should be setTheme(theme).April 3, 201311: Ajax450The first line of code at the top of the page should be {$row\['date\_submitted'\]}.April 3, 201311: Ajax457The name and id values of the comments input need to be lowercase.December 30, 201211: Ajax464Step 11 should say to save the file as “content.js”.December 30, 201211: Ajax469The last line of code under Step 11 should be
\[{"1": "380.10"}\]or just {“1”: “380.10”}.April 3, 201312: Error Management480There’s an extra closing parentheses after !isNaN(volume) in the last line of code.December 30, 2012
