how to log style word to the console js code example Example: console log style console.log("%cThis is a green text", "color:green");