Wrox Home  
Search

Topic: Web

Professional JavaScript for Web Developers, 3rd Edition (1118026691) cover image

Professional JavaScript for Web Developers, 3rd Edition

Nicholas C. Zakas
ISBN: 978-1-118-02669-4
Paperback
960 pages
January 2012
View Previous Edition of This Title
Other Available Formats: Wiley E-Text
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $44.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
37 Error in Text
On page 37, the section entitled "NaN", the last two sentences of the first paragraph(begins with "For example") should be replaced with:

For example, attempting to divide a number by a non-number typically causes an error in other languages, halting execution. In ECMAScript, dividing a number by a non-number returns NaN, which allows other processing to continue.
09/02/2013
40 Error in Code
The following code currently reads:

//56 (octal) in ECMAScript 3, 0 (decimal) in ECMAScript 5
var num = parseInt(?070?);


It should read:

//56 (octal) in ECMAScript 3, 70 (decimal) in ECMAScript 5
var num = parseInt(?070?);
12/12/12
40 Error in Description of Code
Currently reads:
In ECMAScript 5 JavaScript engines, the ability to parse octal values has been removed from parseInt(), so the leading zero is considered invalid and the value is treated the same as ?0?, resulting in the decimal value 0.

Should read:
In ECMAScript 5 JavaScript engines, the ability to parse octal values has been removed from parseInt(), so the leading zero is ignored and the value is treated the same as ?70?, resulting in the decimal value 70.
12/12/12
82 Error in Text
The following sentence should be removed:

"This effect goes only one way: changing the named argument does not result in a change to the corresponding value in arguments."

This is no longer true.
12/12/12
92 Error in Text
Currently reads:
"Neither the global context nor the local context of swapColors() has access to tempColor."

Should be:
"Neither the global context nor the local context of changeColor() has access to tempColor."
12/5/2012
108 Error in Text
Currently reads: ArrayFilterExample03.htm

Should read: ArrayTypeExample03.htm.
01/02/2014
109 Error in Text
Currently reads: ArrayFilterExample04-06.htm

Should read: ArrayTypeExample04-06.htm
01/02/2014
110 Error in Text
Currently reads: ArrayFilterExample07.htm

Should read: ArrayTypeExample07.htm
01/02/2014
114 Error in Code
Currently reads: "//get the first item"

Should read: "//get the first last item"


The same change should be made in ArrayTypeExample12.htm.
01/02/2014
122 Error in Text
This sentence:

"Using this data storage format, the Date type can accurately represent dates 285,616 years before or after January 1, 1970."

Should read:

"Using this data storage format, the Date type can accurately represent dates 100,000,000 days before or after January 1, 1970."
12/12/12
133 Error in Code
In this code snippet:
var matches = pattern2.exec(text);
console.log(matches.index); //0
console.log(matches[0]); //cat
console.log(pattern2.lastIndex); //0

The last line should be changed to:
console.log(pattern2.lastIndex); // 3
03/06/2013
746 Error in Text
2nd paragraph currently reads:

There is also an Object.isFrozen() method to detect frozen objects. Since frozen objects are both sealed and extensible...

Should read:

.... Since frozen objects are both sealed and not extensible...
11/11/2013
840 Error in Code
The function definition for isHiddenSupport (the first code example), should be:
function isHiddenSupported(){
    return ("hidden" in document || "msHidden" in document ||
        "webkitHidden" in document);
}
01/02/2014
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free