alert
function
function alert(message?: string): voidShows the given message and waits for the enter key pressed.
If the stdin is not interactive, it does nothing.
message?: string
Example
// Displays the message "Acknowledge me! [Enter]" and waits for the enter key to be pressed before continuing.
alert("Acknowledge me!");
See also