Goal: In the Functions lesson, we learned:
alert()to pop up a dialog box with a warning for the user.
confirm()to ask a yes or no question.
prompt()to ask a question.
prompt()as a variable. All responses entered by a user into a prompt input are saved as strings (even if the user enters 10, the value is saved as the string, "10"). Run at least 3 string methods of your choice on the string variable that you create from the prompt.
Lesson 22 of 61
Last updated January 20, 2021