Lesson 2 - Ask
Ask for input using the prompt command.
- Open the Javascript and output window
- In the Javascript window type:
var age = prompt("How old are you?");
- In the Javascript window type:
alert("You are " + age + " years old");
- In the output windows click: "Run with JS"
- Change the question and anwser
- Run your script