Assignments

Assignment 1

Create a script that asks the user for a name, then greets the user with "Hello" and the user name on the page.

A solution not necessarily the only one.

Assignment 2

Create a script that collects numbers from a page and then adds them up and prints them to a blank field on the page.

A solution not necessarily the only one.

Assignment 3

Create a script that prompts the user for a number and then counts from 1 to that number displaying only the odd numbers.

A solution not necessarily the only one.

Assignment 4

Create a script that will check the field in Assignment 2 for data and alert the user if it is blank. This script should run from a button.

A solution not necessarily the only one.