Skip to content

Instantly share code, notes, and snippets.

@TanAlex
Created June 7, 2019 00:58
Show Gist options
  • Save TanAlex/186b699a47566cd65a3fa7095f06005e to your computer and use it in GitHub Desktop.
Save TanAlex/186b699a47566cd65a3fa7095f06005e to your computer and use it in GitHub Desktop.
[js console.log tricks]console.log #console #tricks
console.log('%cAn error occured', 'background: red; color: white; padding: 4px; border-radius: 4px;font-weight: bold;')
console.log("%cStr1" + "%cStr2", "Css-for-str1", "Css-for-str2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment