• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

If you'd like to gain more experience in using custom objects, perform the following exercises:

  • Modify the definition of the Card object to include a property called email for the person's email address. Modify the PrintCard function to include this property.

  • Make a script that adds a first5 method, which returns the first five characters, to the String object. You'll need to use the substring method, described in Hour 6, “Using Strings and Arrays.”


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint