Methods of the console
object¶
Below is a list of the available methods provided by the console
object. Click on a method name to see its detailed description and examples.
Method | Output Color | Description |
---|---|---|
console.log() | Gray | Outputs a normal message to the console. |
console.info() | Green | Outputs an informational message. |
console.warn() | Yellow | Outputs a warning message. |
console.error() | Red | Outputs an error message. |
console.clear() | - | Clears the console content. |
console.dir() | - | Displays a list of properties and methods of the specified JavaScript object. |