developer console log custom text code example Example: console log style console.log("%cThis is a green text", "color:green");