Week 02: Assignment – Loop

Update: May 6th, 2009

Task

Demo (Answer)

Create a page containing a script that does the following:

Write the numbers 1 through 10 to a page. You may do this however you like (using a for loop or just writing out each number)

The page should look like this:
1
2
3
4
5
6
7
8
9
10

For extra credit, add an additional element to this page so that it does something else interesting (examples: alert 1 through 10, write the numbers backwards in a for loop, etc)

Publish this page on your Assignments Page by next week’s first class lecture.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • FriendFeed
  • LinkedIn
  • NewsVine
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Tumblr
  • Twitter
  • Yahoo! Buzz
  • Current
  • HackerNews
No comments yet.
TOP