Skip to content

Input ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.

Read one line of text from the host: the terminal in a command-line host, the prompt() dialog in a browser. The optional operand is a prompt string, displayed before reading. Evaluates to the line read, without the trailing newline; to Nothing at end-of-input (or a canceled dialog). On a host with no interactive input, stays unevaluated. When the host denies console access, evaluates to a capability-denied error.

Input(prompt: string?) console -> nothing | stringas compute-engine declares it
Typed signatures
TypePackageApplies
(prompt: string?) console -> nothing | stringcompute-enginealways

Domain: Compute engine

About