0
Prompt is used to get the user input.
It will show the message and get the input from used.
Following is simple example for prompt
var MyName = prompt("Type your name", "Defaultvalue");
The first parameter is message and the second parameter is the default message.