JavaScript Debugging Tips
JavaScript Debugging Tips
Console.
Log()
Skip console.log() - Level Up
Your Debugging
Console.dir()
`console.dir()` displays an object’s
properties in an interactive, tree-like
format in the console.
Example
Console.table()
`console.table()` displays tabular data
in a table format in the console.
Example
Console.group()
console.group() creates a new group
in the console for nested log
messages, which can be expanded or
collapsed.
Example
Console.time &
Console.timeEnd()
console.time() starts a timer with a
specified label, and console.timeEnd()
stops the timer and logs the elapsed
time.
Example
Console.clear()
`console.clear()` clears all messages
from the console.
Example
Muhammad Ishaq
Follow to get
more
Information
and tips like
this.