return alert and prompt function code example
Example 1: js prompt
var answer = prompt('What is your name?','Joe Blogg');
Example 2: how to alert in javascript
alert("Message")
var answer = prompt('What is your name?','Joe Blogg');
alert("Message")