Skip to content

Instantly share code, notes, and snippets.

@hnq90
Created September 30, 2015 07:23
Show Gist options
  • Select an option

  • Save hnq90/af9a2fa94c868ae19d76 to your computer and use it in GitHub Desktop.

Select an option

Save hnq90/af9a2fa94c868ae19d76 to your computer and use it in GitHub Desktop.
var animals = [
{ animal: 'Horse', name: 'Henry', age: 43 },
{ animal: 'Dog', name: 'Fred', age: 13 },
{ animal: 'Cat', name: 'Frodo', age: 18 }
];
console.table(animals);
console.trace('trace car');
console.debug
debug(car.funcY);
console.todo = function( msg){
console.log( '%c %s %s %s ', 'color: yellow; background-color: black;', '--', msg, '--');
}
console.important = function( msg){
console.log( '%c%s %s %s', 'color: brown; font-weight: bold; text-decoration: underline;', '--', msg, '--');
}
console.todo("This is something that's need to be fixed");
console.important('This is an important message');
monitor(functionName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment