More than console.log

We often use console.log as a powerful tool for debugging. But beside that simple log, we still have many other options which are useful and good time-savers. Inspired by, I write this article as an quick overview of that series and what I believe are most useful.

Make things semantic

console.log('Log style');'Info style');
console.warn('Warn style');
console.error('Error style');

Grouping‘Group title’);
console.log(‘Item inside group’);

Quick boolean check

console.assert(expression, 'Error message if experssion fail'); 

Log the timing of process

console.time('Timer'); something...

Pretty array of objects

console.table([object1, object2, object3]);
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.