Chapter 2:
Page Location Edit
47 First paragraph, fourth sentence after "Defining Functions" Delete the words "like all JavaScript code"
50 Tip Delete
56 Code sample, second line Replace with Animal.prototype.size = "fat";
56 next paragraph, second sentence Reword the code segment at the end of the sentence to: Animal.prototype.size = "";
62 Second paragraph, last sentence Replace with "Within a function, variables declared without the var keyword are global variables; variables declared with the var keyword are local variables."
63 Code sample All comment lines that begin with // should be on the same line
63 Last paragraph, second sentence Replace with: "The global variable is thus effectively hidden, and changes made to the local variable within the function do not affect the value of the global variable."
63 Last paragraph, last sentence Replace with "After the function ends, Golden Retriever is still the value of the showDog variable."
63 Code segment at bottom of page Change the comment line to "//value printed is Golden Retriever"
76 Fourth sentence after "Links" Change "red is the default color of previously visited links" to "purple is ..."
78 Code sample after third paragraph Change '... HREF="/MoreWebPages... to HREF="MoreWebPages ..." ' [Rationale: The presence of the leading / makes the address an absolute address, where the / refers to the root directory]
78 First sentence in "Link Events" section Change "The primary event used with links is the click event" to "One event used with links is the click event." [Rationale: The mouseOver and mouseOut events are more commonly used than the click event in JavaScript code for links]
83 First bullet Reword as follows: "An <IMG> tag that contains an SRC attribute specifying the name of the image and a USEMAP attribute specifying the value assigned to the NAME attribute of the ..."
83 Second bullet Reword as follows: "A MAP>...</MAP> tag pair that includes a NAME attribute that has been assigned the same value used by the <IMG> tag's USEMAP attribute."

Last Modified: September 3, 2001. The source of some of these corrections is the updates page for the Gosselin text on the instructor portion of the Course Technology web page.   Comments to William Pegram, wpegram@nvcc.edu