What is a prompt box?

Forums JavaScriptWhat is a prompt box?
Staff asked 1 year ago

Answers (1)

Add Answer
Hardik Ghevariya Marked As Accepted
Staff answered 1 year ago

The prompt() method displays a dialog box that prompts the user for input.

The prompt() method returns the input value if the user clicks “OK”, otherwise it returns null.


prompt("Please enter your name");



Select Categories