Day 25 of #100daysofjs

Photo by Andrew Neel on Unsplash

Day 25 of #100daysofjs

JavaScript Console Object

Console object methods

The console object has several methods, log being one of them. some of them are as follows:

assert() -> used to assert a condition

clear() -> clears the console

log() -> outputs a message to the console

table() -> Displays a tabular data

warn() -> used for warning

error() -> used for error

info() -> used for special information

You will naturally remember some or all of these with time

A comprehensive list can be looked up on MDN. (console.log(console))

Code