1.

Which Window object method is used to display a message in a dialog box?(a) alert()(b) prompt()(c) message()(d) console.log

Answer» Right option is (a) alert()

Explanation: The Window object defines methods like alert(), which displays a message in a dialog box. A prompt message can be displayed on the screen using alert().


Discussion

No Comment Found

Related InterviewSolutions