Chapter 3 - adishap/advanced-JS-console-logging GitHub Wiki

Grouping and Nesting Console Log Output

for(var i=0; i<5; i=i+1){ console.group("Picking a number from 1 to 100"); groupCollapsed() var num = Math.random()*; console.log("no selected is %d",num); console.log("no smaller than 50?",num<50); console.groupEnd(); }

can also form nested one..