Paul McFedries' Web Home


The cover of Special Edition Using JavaScript Special Edition Using JavaScript

Errors, Typos, and Other Errata


This page lists the errors that I've found in the first printing. This is still only a partial list since I haven't read through the entire book yet. I'll note here when this list is complete.
Page 21
Incorrect:
The close comment tag (—>))>)> (close comment tag)> contains a double dash (—)
Correct:
The close comment tag (-->) contains a double dash (--)
Page 92 (Listing 5.13)
Incorrect:
var left_operand = prompt("Enter the left Boolean value (true or false):", true)
var right_operand = prompt("Enter the right Boolean value (true or false):", true)
Correct:
var left_operand = eval(prompt("Enter the left Boolean value (true or false):", true))
var right_operand = eval(prompt("Enter the right Boolean value (true or false):", true))
Page 93 (Listing 5.14)
Incorrect:
var left_operand = prompt("Enter the left Boolean value (true or false):", true)
var right_operand = prompt("Enter the right Boolean value (true or false):", false)
Correct:
var left_operand = eval(prompt("Enter the left Boolean value (true or false):", true))
var right_operand = eval(prompt("Enter the right Boolean value (true or false):", false))
Page 96 (see Table 5.9)
Incorrect:
--        Negation
+, --     Addition, subtraction
Correct:
-         Negation
+, -      Addition, subtraction
Page 105
Incorrect:
Using the AND (??) and OR (||) Operators
Correct:
Using the AND (&&) and OR (||) Operators

Incorrect:
...JavaScript's AND (??) and OR (||) operators.
Correct:
...JavaScript's AND (&&) and OR (||) operators.
Page 125
Incorrect:
For example, you might need to use a with loop
Correct:
For example, you might need to use a while() loop
Page 166
Incorrect:
var listing1 = "10.1"
var listing2 = "10.2"
var listing3 = "10.3"
var listing3 = "10.4"
var listing3 = "10.5"
Correct:
var listing1 = "10.1"
var listing2 = "10.2"
var listing3 = "10.3"
var listing4 = "10.4"
var listing5 = "10.5"
Page 186 (Figure 10.9)
Incorrect:
my_array (before:) 6 5 4 3 2 1
Correct:
my_array (before:) 3 5 1 6 2 4
Page 281 (passim)
Incorrect:
splice()
Correct:
slice()
Page 349
Incorrect:
If the window was never opened, closed returns null.
Correct:
If the window was never opened, the Window object returns null.
Page 373
Incorrect:
location.reload.(true)
Correct:
location.reload(true)
Page 728
Incorrect:
tag;layers> tag>The second thing you need to know
Correct:
The second thing you need to know
Page 832
Incorrect:
http://msdn.microsoft.com/scripting/debugger/
Correct:
http://msdn.microsoft.com/scripting/debugger/default.asp
Page 838
Incorrect:
Using Netscape's JavaScript Debugger
Correct:
The debugger fails to install on Netscape 6.1.

Return to Special Edition Using JavaScript home page


Copyright © 1995-2008 Paul McFedries and Logophilia Limited