asked 9.5k views
0 votes
Which of the following syntaxes displays a dialog box, causing the user to enter input text?

a. print(text[,default Input])
b. confirm(text[,default Input])
c. prompt(text[,default Input])
d. alert(text[,default Input])

asked
User Xelber
by
7.6k points

1 Answer

5 votes

Answer:

c. prompt(text[,default Input])

Step-by-step explanation:

In javaScript the prompt() method displays a dialog box which allows the user input text required by the program.

answered
User Emelin
by
7.4k points