What does the alert() function do in JavaScript?
alert()
Displays a dialog box with a message to the user.
Displays a message in the browser's console.
Asks the user to enter text.
Reloads the current page.