Javascript Tutorial

Compare the values 1 and 4 using a If then Else statement. Click Here for Results

Evaluate the number 2 with a Switch statement. Click Here for Results

List all the numbers from 2 to 20 with a For Loop. Click Here for Results

List all the numbers from 20 to 2 with a While Loop. Click Here for Results

Mess up a Do While Loop to show how the break statement works. Click Here for Results