Using code from scripts in the textbook, as well as the examples linked on the course Web site, write a JavaScript that uses all the following constructions. You may write several small JavaScripts or one large one, depending upon your application. What you do is up to you, so long as the constructions are properly set up and execute correctly . . . and don't worry: It doesn't have to make sense or be useful, it just has to run! (Try collecting information from a user prompt and then applying it to the conditions of each construction.)
if statementdo statementwhile statementfor-loopI have a question for you. Would you mind telling me your birthday?
Yes, I would. How rude!
Not at all. I have nothing to hide.