Saved Bookmarks
| 1. |
Rewrite the following code using the if. .then..else statement:Select case choiceCase 1Document.write("Monday")Case 2Document.write("Tuesday")Case 3Document.write("Wednesday")Case elseDocument.write("Sunday")End select |
|
Answer» if choice= 1 then Document.write("Monday") elseif choice= 2 then Document.write("Tuesday") elseif choice= 3 then Document.write("Wednesday") else Document.write("Sunday") End if |
|