Book
Submodule 6.2: Simple JavaScript file
Submodule 6.2: Simple JavaScript file
Completion requirements
View
- JavaScript in HTML file
- alert interaction
- Variables
- prompt interaction
- Comments in JavaScript
- Developer tools (console)
Exercise
Exercise
- Open your editor, create a new file and save it as
exersice06.2.html
in the folder "Exercises". - You have to use two variable and two prompt() interactions.
- Modify and save the file. The browser's output should be as shown in the following image: