Lab 21
For this lab we had to use the three types of alert boxes: alert, confirm, and prompt. First it will ask your name and then give a record of the exercise you did. Then a pop up would ask you if you would like to take a walk or go outside. If you choose to go outside it will generate a random number of miles you walked , but if you chose to stay inside then it will just say you didn't walk. This was all to try out all the different alert boxes.
This lab was similar to the previous as it had the use of If-else statements, except it added alert boxes to it. The first alert box was a confirm box, the next was a alert, and the final one was a prompt box. These skills could be used in other scenarios such as creating a game or making a survey/quiz.
Comments
Post a Comment