Animations
API
Arrays
Async
Basics
Challenges
Classes
Console
Dates
Debugging
DOM Elements
DOM Methods
DOM Properties
Event Listeners
Flow Control
Forms
Functions
Global Functions
JSON
Keywords
Libraries (3rd party)
Math
Modules
Objects
Snippets
String
Types
Widgets
Window Object
The Console object provides access to the browser's debugging console.
clear()
- Clears the consoleerror()
- Outputs an error message to the consoleinfo()
- Outputs an informational message to the consolelog()
- Outputs a message to the consolewarn()
- Outputs a warning message to the consoledir()
- Outputs an object
console.log("This is a message");
console.info("This is a info message");
console.warn("This is a warning message");
console.error("This is a error message");
console.log("This is a message with overloads...but just use string templates. ", "My message");