Errata
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 "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
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page xxxii 3rd Paragraph/3rd picture at top |
Elaine Nelson's picture has Elaine Norman over it instead of Elaine Nelson |
Anonymous | |
| Printed | Page 9, 11 lines 8 and 14 of p9, 3rd para of p11 |
I checked this with my boyfriend, who is a software developer. Both of us think that the actual conditional is commented out in two places. Given that the functions are called validateSomething, this must be a mistake. Note from the Author or Editor: |
Anonymous | |
| Printed | Page 9 Sharpen your pencil exercise |
At the bottom, the code line "onclick="findHouses(this.form);" />" should not be circled; instead, two lines up, the code "onclick="calcPrice();" />" should be circled. |
Anonymous | Feb 2008 |
| Printed | Page 33 In the cloud |
In the statement "Every lady needs needs a special place to store treasured" ... "needs" is put twice. |
Anonymous | Feb 2008 |
| Printed | Page 46 Watch it! |
It is not made clear enough that constants are not supported by Internet Explorer. Use "var" instead of Note from the Author or Editor: |
Anonymous | |
| Safari Books Online | 48 Bullet Points at the bottom of the page, 4th point |
instead of "keyboard" it should read "keyword": Note from the Author or Editor: |
Anonymous | |
| Printed | Page 49 column 2, top question |
Please delete the apostrophe in the word "it's"; it should be "its". |
Anonymous | |
| Printed | Page 49 Next to last Bullet Point (bottom right of page) |
The word "keyboard" should be "keyword". So it should read "The var keyword is used..." |
Anonymous | Feb 2008 |
| Printed | Page 54 bottom left |
Some one has already reported this partially: Note from the Author or Editor: |
Anonymous | |
| Printed | Page 73, 74 |
Missing "==" in code on the fourth line in between the two dashed blanks. Line 2 has the same "==" done correctly. |
Anonymous | Feb 2008 |
| Printed | Page 74 |
Fifth line of code in solution is missing an extra closing parenthesis magnet at the end (right after the word "value"). |
Anonymous | Feb 2008 |
| Printed | Page 81 13 Across |
"An piece of data . . ." should be either "A piece of data . . ." or "Any piece of data . . ." Note from the Author or Editor: |
Anonymous | |
| Printed | Page 93 First sentence |
... a timer in JavaScript is 1) establishing... |
Anonymous | Feb 2008 |
| Printed | Page 94 1st paragraph 3rd line |
Instead of ....headfirstlabs.com/books/hfsd it should read ....headfirstlabs.com/hfjs. |
Anonymous | |
| Printed | Page 117 2nd sentence |
"Unlike a variable, athough..." |
Anonymous | Feb 2008 |
| Printed | Page 125 Sentence 2nd sentence of Answer 4 |
"That one important..." (improper sentence construction) |
Anonymous | Feb 2008 |
| Printed | Page 140 last sentence |
The last sentence ends with Note from the Author or Editor: |
Anonymous | |
| Printed | Page 144 Last paragraph, 1st sentence |
"...let the user to navigate through..." |
Anonymous | Feb 2008 |
| Printed | Page 153 Arrow top left in decision tree |
In the two choices between Scene 2 and Scene 4: Note from the Author or Editor: |
Anonymous | |
| Printed | Page 164 Bottom left (expressions) paragraph |
At end of last sentence, "...handy for construction decision making..." |
Anonymous | Feb 2008 |
| Printed | Page 165 No Dumb Questions - answer 2 |
In addition to null, 0 and "", undefined is handled similarly, so var d = null;, var d = 0, var d = ""; and var d; all work for answer d of the subsequent exercise. |
Anonymous | Feb 2008 |
| Printed | Page 170 middle of sample code |
there is a semi-colon missing after the |
Anonymous | |
| Printed | Page 173 |
The answer for the next-to-last NDQ needs to be completely changed. Instead of referring to current JS, it refers to JS2, which isn't supported in any real browsers yet. Here's a new answer: |
Anonymous | |
| Printed | Page 173 No Dumb Questions - answer 3, sentence 2 |
"Comments are lables..." should be |
Anonymous | Feb 2008 |
| Printed | Page 201 top of 3rd column |
I believe the word "inconventional" s/b "unconventional". Note from the Author or Editor: |
Anonymous | |
| Printed | Page 217 2nd paragraph |
The sentence Note from the Author or Editor: |
Anonymous | |
| Printed | Page 226 2nd to last sentence on page |
The sentence - Note from the Author or Editor: |
Anonymous | |
| Printed | Page 232 2nd paragraph, 1st sentence |
"...of the array elements, o it makes sense..." should be |
Anonymous | Feb 2008 |
| Printed | Page 237 2nd paragraph |
Under the second large paragraph with the seat# functions, <img id="seat14" src=" alt="" /> is missing a quotation mark under src=. It should be <img id="seat14" src="" alt="" /> instead. Note from the Author or Editor: |
Anonymous | |
| Printed | Page 261 Sidenote pointing to thermostat picture |
The sentence Note from the Author or Editor: |
Anonymous | |
| Printed | Page 273-274 The code in the exercise and the exercise solution should be changed from |
function doThis(num) { |
Anonymous | |
| Printed | Page 293 Third code block on page |
The last line of the code block should not end with a semicolon. The code should read: |
Anonymous | |
| Printed | Page 295 Title at the top of the page |
the title Note from the Author or Editor: |
Anonymous | |
| Printed | Page 302 Second line of code block |
The code in the onblur handler should end with a semicolon. This second line of code should read: |
Anonymous | |
| Printed | Page 321 Bottom left corner above the Exercise |
The first two slashes in the regular expression ^/d/ are reversed. The correct code is /^d/. As a reference, the correct version of the code does appear on the page already, just above and to the left of the first paragraph of text. |
Anonymous | Feb 2008 |
| Printed | Page 323 What's My Purpose exercise |
For consistency, the positions of second and sixth answer options in the right column should be swapped |
Anonymous | |
| Printed | Page 326 Steps numbered 2 and 3 above last paragraph |
The steps in question describe what the validateRegEx() function should do. Step 2 states that if the pattern matches, the help message should be set to the help text passed in and false should be returned. If the pattern matches, shouldn't the help text be cleared and true returned as described in step 3? It appears that step 2 should read "If the pattern doesn't match..." and step 3 should read "If the pattern matches...". The code on page 327 shows the implementation the correct way--if the pattern doesn't match, set the help message and return false. Otherwise, clear the help message and return true. Note from the Author or Editor: |
Anonymous | |
| Printed | Page 434 diagram at top |
The box with the text "ceiling()" should instead contain the text "ceil()" |
Anonymous | |
| Printed | Page 434, 436 Exercise and Exercise solution |
The second code line should read "Math.ceil(Math.PI)", not "Math.ceiling(Math.PI)" |
Anonymous | |
| Safari Books Online | 458 1st handwritten paragraph |
initializing is misspelled in the sentence: Note from the Author or Editor: |
Anonymous | |
| Printed | Page 483 |
In Page Bender, the "Missing Image" box in the bottom-center should not be part of the picture. |
Anonymous | Feb 2008 |
| Printed | Page 488 First sentence of last paragraph |
The sentence Note from the Author or Editor: |
Anonymous |
