Member-only story

Group Multiple Console Statements In JavaScript

Gokul
2 min readAug 17, 2022

--

JavaScript is a scripting or programming language that allows you to implement complex features on web pages, such as displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, and so on.

Almost certainly, JavaScript is involved. It is the third layer of a three-tiered cake of standard web technologies, the first two of which are HTML and CSS

console.log()

The console.log() function sends a message to the web console. The message can be a single string or one or more JavaScript objects with optional substitution values.

console.log with a single string

The console.log() functional also accepts the multiple comma-separated values as below

console.log with the multiple strings

console.group() and console.groupEnd()

Okay, I hope you now have a better understanding of what console.log() does; we’ll now look at the console.group().

The console.group() function adds a new inline group to the Web console log, indenting future console messages by one level until console.groupEnd() is called.

--

--

Gokul
Gokul

No responses yet