change color of text in consolelog code example Example: how to color console.log console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');