function alert
Jump to headingalert(message?: string): void
Shows the given message and waits for the enter key pressed.
If the stdin is not interactive, it does nothing.
Examples Jump to heading
Jump to heading
Example 1
Example 1
// Displays the message "Acknowledge me! [Enter]" and waits for the enter key to be pressed before continuing.
alert("Acknowledge me!");
Parameters Jump to heading
optional
Jump to headingmessage: string
Return Type Jump to heading
void