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

Exercises

You can further your knowledge of strings and arrays by performing these activities:

  • Use Netscape's JavaScript console to create several strings and experiment with them. The console was introduced in Hour 2, “Creating a Simple Script.” To use it, type javascript: in Netscape's Location field.

  • Modify the scrolling message example to scroll the message in the opposite direction. (Hint: Since the pos variable controls what portion of the string is displayed, you need to make its value count downward instead of upward.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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