Code and Errata for JavaScript Step by Step
Errata are being collected for this book. If you'd like to report errata please use the form on this web site.
Click here to file an errata report for JavaScript Step by Step
Errata:
First Edition, Page 149: Within the section titled "Using slice to return parts of an array" - The code example uses an incorrect function. It shows:
var cutStars = star.splice(2,3);
However, it
should be:
var cutStars = star.slice(2,3);
Additionally, this code would return simply "Altair" because the slice() function accepts two arguments, the begin and end index.
Second Edition, Page 204: On page 204, there's a Note (called a readeraid in the Microsoft Press/O'Reilly template). In that note, the last sentence, or partial sentence, reads, "DOM Level 0 is also known". In reality, that sentence goes in the following paragraph and should read "DOM Level 0 is also known as the legacy DOM."
