Answers for "how to change the color of a console.log in javascript"

0

js console.log color

console.log('%c My txt ', 'My css');

// Example
console.log('%c Hello world ', 'background: #222; color: #bada55');
Posted by: Guest on February-20-2021
0

how to change the color of a console.log in javascript

// Download the npm package "colors"
// npm i colors

var colors = require("colors");

console.log("Hello World".blue);

// output: Hello World (Its blue btw lmao)
Posted by: Guest on August-02-2021

Code answers related to "how to change the color of a console.log in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language