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