Skip to main content
alert - Platform - Web documentation
function alert
alert(message?: string): void

Shows the given message and waits for the enter key pressed.

If the stdin is not interactive, it does nothing.

Examples

Example 1

// Displays the message "Acknowledge me! [Enter]" and waits for the enter key to be pressed before continuing.
alert("Acknowledge me!");

Parameters

optional
message: string

Return Type

void

See

Back to top