Host console API
console.log()
Displays values for inspection through the host console. The representation of objects and formatting may differ between hosts. Use return to provide a function result instead of relying on log output.
Formal Syntax & Structure
javascript syntaxjavascript
console.log(value, ...otherValues)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| value | any | First value to display; may be omitted. |
| otherValues | any | Additional values to display. |
Return Value
undefined
Does not return the displayed value.
Working Example
Example Snippetjavascript
console.log("Total");console.log(9);