Which Window object method is used to display a message in a dialog box?

Trương Duy

New member
Which Window object method is used to display a message in a dialog box?
A. alert()
B. prompt()
C. message()
D. console.log
 
Answer: a
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().
 

Tìm kiếm

Back
Top