A few uses of the console API


console.log("This is a log using log()", objectToDebug, arrayToDebug);
console.info("This is a log using info()", objectToDebug, arrayToDebug);
console.error("This is a log using error()", objectToDebug, arrayToDebug);
console.warn("This is a log using warn()", objectToDebug, arrayToDebug);
console.debug("This is a log using debug()", objectToDebug, arrayToDebug);
            

var groupName = "Advanced methods";
console.group(groupName);
console.assert(!groupName, groupName);
console.time(groupName);
console.log("Let's regroup our log calls");
console.table(arrayToDebug);
console.timeEnd(groupName);
console.groupEnd(groupName);
console.dir(console);
            

monitorEvents(document.body, 'click');