prompt() Function

The prompt() function shows a message box that prompts the user for input.

Screenshot of a prompt dialog in JetScript

Syntax

prompt()
prompt(message)
prompt(message, default_value)

Parameters

Return value

An optional String value:

Example

> prompt()
"Hello!"
> prompt("Where do you live?")
"Saskatchewan"

References