Chapter 7

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.