Example 1 — Example
Typical call.
JavaScript
console.group("g");
console.log(1);
console.groupEnd();
console.log(2);How It Works
- Run the snippet.
- Read the printed output.
console.groupEnd() closes the most recently opened group.
console.group("g");
console.log(1);
console.groupEnd();
console.log(2);Typical call.
console.group("g");
console.log(1);
console.groupEnd();
console.log(2);CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful