1) Write a JavaScript program that ask the user to enter 3 test grades and then writes out the average along with a message that states whether it is a passing grade of 60 or higher.
Use the JavaScript prompt( ); statement to ask the user to enter in each grade. It will be similar to our in-class example. You will need to create variable(s) to store the data the user enters. Once the user has entered the 3 grades, calculate the average. Using an if statement compare the average to determine if it is greater than or equal to 60. If it is, write out a congratulations phrase stating what the average is and that the student passed. If the grade is below 60, write out their average along with a statement indicating that they did not pass.
2) Write a JavaScript program that uses a while statement to count down from 10 to zero and writes out the number with each pass of the loop. Your results should look something like this.
The number is 10
The number is 9
The number is 8
The number is 7
The number is 6
The number is 5
The number is 4
The number is 3
The number is 2
The number is 1
The number is 0
3) Write another loop program but change it so that the loop counts from -5 up to positive 5.