Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript colorized console.log

const styles = ['color: green', 'background: yellow'].join(';');

const message = 'Some Important Message Here';

// 3. Using the styles and message variable
console.log('%c%s', styles, message);
Source by www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #javascript #colorized
ADD COMMENT
Topic
Name
2+8 =