javascript give color to console.log code example
Example 1: js console log with color
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
Example 2: typescript how to color your console loggers
//has to be backtick comma to interpolate.
public colorLogger(str: any, color = "red"){
console.log(`%c ${str}`, `color: ${color}; font-weight: bold;`);
}