The alert() method of the Window object is used to render a dialog box that shows the provided output to the user. This output dialog box requires the user to acknowledge it, and it will pause any script on the page from further processing until it is acknowledged by the user.
Parametersoutput A string, number, or variable representing the output.
alert( "Your time ran out." );
window.alert( "Your time ran out." );