What is the purpose of the alert () method?
alert() instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
How many buttons does an alert box have?
An alert box is used to inform/alert the user about an event. This type of popup box has only one button, named 'OK', and has no return value.