Let’s explore JS consoling

debugging js

console.assert()

use of console.assert() method
use of the console.assert() method

console.clear()

use of the console.clear() method

console.count()

console.countReset()

use of the console.resetCount() method

console.debug()

without enabling debug option
after enabling debug option

console.dir()

use of the console.dir() method

console.dirxml()

use of the console.dirxml() method

console.error()

use of the console.error() method

console.group, console.groupEnd() & console.groupCollapsed()

calling the console.group(), console.groupEnd() method with a name
calling the console.group() method without a name
collapsed log using console.groupCollapsed() method
after clicking the collapsed icon

console.info()

use of the console.info() method

console.log()

use of the console.log() method

console.table()

use of the console.table() method
printing a particular column(s)
use of the .time(), .timeEnd() and .timeLog() method

console.trace()

use of the console.trace() method

console.warn()

use of the console.warn() method

--

--

--

A software engineer from Bangladesh.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Some important features of JavaScript

Bridging the gap between design and code (and learn three.js in less than 4 days)

Inside PixiJS: The ultimate scene graph optimization

day 3 of my #1000daysofcoding

Creating a ASP.NET Core Web API in .NET 6 with NUXT 3 (Template)

How to render likes on a page

Flutter for React Native Developers |1| by Stefan Majiros

Why Typescript?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mehedi Hassan Sunny

Mehedi Hassan Sunny

A software engineer from Bangladesh.

More from Medium

My TypeScript journey

SE3050 -Application Frameworks Blog — 05

What, why, when of redux

Deploy NodeJS and ReactJS production code on Windows server