prompt box to integer
snippet in javascript

prompt box to integer

user5803

var x = parseInt(prompt("Enter a Value", "0"), 10);
var y = parseInt(prompt("Enter a Value", "0"), 10);