Skip to content

Instantly share code, notes, and snippets.

@operateur-mar
Created December 4, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save operateur-mar/805ef31b3ff9c8765a980e5320e9bf21 to your computer and use it in GitHub Desktop.
Save operateur-mar/805ef31b3ff9c8765a980e5320e9bf21 to your computer and use it in GitHub Desktop.
// Stylize a consode using join(;)
const style1 =[
'font-size : 40px',
'font-family : calibri',
'font-weight : bold',
'color : yellow'
].join(';');
const style2 =[
'font-size : 20px',
'font-family : tahoma',
'font-weight : bold',
'color : green'
].join(';');
console.log("%cApply Style1",style1);
console.log("%cApply Style2",style2);
console.log("%cMixed %cStyle",style2,style1);
// www.aqweeb.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment