Which Window method will you use to display a dialog with an optional message prompting the user to input some text?
Explanation
The Window.prompt() displays a dialog with an optional message prompting the user to input some text. Example:

var name = prompt("What is you name?");
if (name != null) { alert("Hello+ " " +name");

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes