how to return to a prompt javascript code example
Example 1: what is the meaning of prompt in javascript
var answer = prompt('What is your name?','Joe Blogg');
Example 2: how to ask input in javascript
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);