prompt input number? code example
Example 1: prompt box to integer
var x = parseInt(prompt("Enter a Value", "0"), 10);
var y = parseInt(prompt("Enter a Value", "0"), 10);
Example 2: js prompt
var answer = prompt('What is your name?','Joe Blogg');