console.log()

Print a value to the console.

console.log('JavaScript');

console.error()

Log an error to the console, by default they are highlighted red.

console.error('Data not present');

console.warn()

Log an error to the console, by default they are highlighted yellow.

console.warn('Should you be calling this function');

console.clear()

Clear the console.

console.clear()

console.time() and console.timeEnd()

Log the amount of time between functions. Parameter is a string or make a reference for the timer.

console.time('t'); 
const one =  function(){
  console.log('One');
}
const two = function(){
  console.log('Two');
}
const three = function(){
  console.log('Three');
}
one();
two();
three();
console.timeEnd('t');

console.table()

Log a table layout - automatically generated for an array or object.

console.table({name: 'shane', age: 33, sex: 'male'});
console.table([1,2,3,4,5,6]);

console.count()

Log the count within a loop.

for(let i=0; i<99; i++){
  console.count(i);
}

console.group() and console.groupEnd()

Allows logging within groups - creates a dropdown in the console. You can nest groups witin groups too. Parameter is a string or make a reference for the timer.

console.group('group1'); 
  console.warn('Some warning'); 
console.group('group2'); 
  console.error('Im an error in group 2'); 
  console.log('I am a log in group 2'); 
console.groupEnd('group2'); 
console.groupEnd('group1');
console.log('I am outside of groups');