Exercises
To further explore the JavaScript features you learned about in this hour, you can perform the following exercises:
Modify the Greet() function to accept two parameters, who1 and who2, and to include both names in a single greeting dialog. Modify Listing 6.2 to use a single function call to the new function. Modify the definition of the Card object to include a property called email for the person's email address. Modify the PrintCard() function in Listing 6.5 to include this property.
|