Console

Console APIs

The Console APIs provide functionality to allow developers to perform debugging tasks, such as logging messages or the values of variables at set points in your code.

Classes

Console

Methods

(static) prompt(messageopt, defaultValueopt)

Shows the given message and waits for the user's input.

Source:
Parameters:
Name Type Attributes Description
message String <optional>

A string of text to display to the user.

defaultValue String <optional>

A string containing the default value displayed in the text input field.