Skip to content

Instantly share code, notes, and snippets.

@EricHech
Last active November 28, 2018 04:39
Show Gist options
  • Save EricHech/ac41bed25e0fb1146329c6c8830a4c9a to your computer and use it in GitHub Desktop.
Save EricHech/ac41bed25e0fb1146329c6c8830a4c9a to your computer and use it in GitHub Desktop.
console.log tips
console.log('%c A log in green' + '%c A log in red', 'font-size: 40px; font-weight: 600; color: green;', 'font-size: 40px; font-weight: 600; color: red;');
// another trick: console.assert will print the second value only if the first one is falsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment