Javascript: Lesson 2

Lab 1

Write a script that uses the Date object and variables in conjunction with document.write(). (For example, set a variable using the date object. Use document.write() to print that variable on the page.)


Lab 2

Write a script that utilizes variables and math functions in conjunction with document.write(). (For example, set some vriables to various numeric values. Utilize the math functions (add, subtract, multiply, divide, etc.) to manipulate these variables and display the answers.


Lab 3

Write a script that utilizes a for loop to print your name 10 times on the screen.


Lab 4

Write a script that utilizes conditional logic. Have it check against the date object to display a special message if it is Saturday.


© 2001 Kiner Designs

Valid HTML 4.0!

Valid CSS!