Book
Submodule 5.2: Simple JavaScript file
Submodule 5.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
exersice05.2.html
in the folder "yourNameWEB2JS". - 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: