There is more than console.log()
to the Chrome Web Console:
Output debug, info, warnings and errors:
console.debug('Just so that the dev know')
console.info('Here is some info')
console.warn('This may be a problem')
console.error('This must not happen')
Assert results:
console.assert(nodeList.length < 500, "NodeList is > 500");
Ask for breakpoint in code:
debugger; //yes, that's it, just need to have this keyword on a line.
Output in a table:
console.table([[1,2,3], [4,5,6]])
console.table([{a:2, b:3}, {a:4, b:5}])