Answers for "how do you change the color of text in console.log"

3

console.log with color font

console.log("%cThis is a %cConsole.log", "background:black ; color: white", "color: red; font-size:25px");
Posted by: Guest on December-10-2020
1

console.log with color font

var colors = require('colors');

console.log('i am black'.black);
console.log('i am red'.red);
console.log('i am green'.green);
console.log('i am black'.yellow);
console.log('i am blue'.blue);
console.log('i am magenta'.magenta);
console.log('i am cyan'.cyan);
console.log('i am white'.white);
console.log('i am gray'.gray);
console.log('i am grey'.grey);
Posted by: Guest on December-10-2020

Code answers related to "how do you change the color of text in console.log"

Code answers related to "Javascript"

Browse Popular Code Answers by Language