Page 101: In the first sentence on the page, there is an extra ellipsis between for and in. The sentence should read: Listing 7-1 shows a program that adds numbers together. It works great and does exactly what it’s supposed to do, using a for…in loop (see Chapter 6).
Page 104: There should be a space between new and Date() in the code listing.
var rightNow = new Date();
Page 106: A paragraph is repeated before and after the code block near the bottom of the page. Remove the first instance of the paragraph starting with:
“When you call a function, you include data (arguments) in the places where the function definition has parameters.”
Page 111 In listing 7-9, The middle parameter of the for loops should be a lowercase i, rather than uppercase.
Page 68 The expression should read: a = 1 + 2 * 3 / 4;
as opposed to what the book shows: a + 1 + 2 * 3 / 4;
Page 76: The second binary string should be:
Page 62: In the listing, there’s a semicolon missing after the empty variable declaration. It should read:
var bestAlbumsByGenre = ;
Page 62: In the final code block on the page, there shouldn’t be an underscore or a semicolon in the comment. It should read:
bestAlbumsByGenre; // returns “Patsy Cline:Sentimentally Yours”
Listing 4-3 Where it says indexof, it should actually be indexOf
Page 51: Under substring() (at the bottom of the page), the comment should read: // returns vaS
Page 26: In Listing 2-1, remove the words “Code Line Before Listing Code”.