Console
console.log()
Writes a formatted message followed by a newline to the standard output stream of the global console. Use it for simple local diagnostics; production structured logging requires separate design.
Formal Syntax & Structure
nodejs syntaxnodejs
console.log(...data)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| data | any | Values to format and print. |
Return Value
undefined
No application result is returned.
Working Example
Example Snippetnodejs
console.log("Items:", 3);