if prompt box returns default text), then an alert box will pop-up //and says "Did not enter a new item. Try again!". code example
Example 1: js prompt
var answer = prompt('What is your name?','Joe Blogg');
Example 2: how to alert in javascript
alert("Message")