If - Answers Use IF for code to be executed, if a specified condition is true
Else - Answers Use ELSE for code to be executed, if a specified condition is false
Switch - Answers Use the SWITCH statement when many blocks of code are being executed.
Loops - Answers Use when running the same code over and over again, each time with a different value.
For Loop - Answers loops through a block of code a number of times
While Loop - Answers loops through a block of code while a specified condition is true
switch (grade)
{
case 'A': document.write("Good job<br />");
break;
case 'B': document.write("Pretty good<br />");
break;
case 'C': document.write("Passed<br />");
break;
case 'D': document.write("Not so good<br />");
break;
case 'F': document.write("Failed<br />");
break;
default: document.write("Unknown grade<br />")