Input
to get input from the user:prompt(text, defaultText)
for example:
var name = prompt("Enter your name:","anonymous"); var age = parseInt(prompt("Enter your age:"));
Input
to get input from the user:prompt(text, defaultText)
for example:
var name = prompt("Enter your name:","anonymous"); var age = parseInt(prompt("Enter your age:"));