step1.1, 1.2: Create a prompt pop-up box by using prompt() method. Add a default text //in the prompt box when creating that prompt box. code example
Example 1: js prompt
var answer = prompt('What is your name?','Joe Blogg');
Example 2: how to alert in javascript
alert("Message")