Example 1 — Example
Typical call.
JavaScript
console.groupCollapsed("details");
console.log("hidden until expanded");
console.groupEnd();How It Works
- Run the snippet.
- Read the printed output.
console.groupCollapsed() opens a group that starts collapsed in DevTools.
console.groupCollapsed("details");
console.log("hidden until expanded");
console.groupEnd();Typical call.
console.groupCollapsed("details");
console.log("hidden until expanded");
console.groupEnd();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