pause
pause
Function
Prints an optional prompt to the console and waits for the user to press Enter.
Syntax
pause(message)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| message | Any | No | None | Prompt text to be output before waiting. |
Return value
| Type | Description |
|---|---|
| Empty | Returns to Empty after the user presses Enter. |
Example
pause('press enter') // Output: press enter
Notes
- This function will block the current thread and should not be used in the server hot path.