JavaScript – Invalid text display in console

  • Home / Blog / JavaScript – Invalid…

JavaScript – Invalid text display in console

Color does not work for contacts in the console, how can this be fixed? The first two lines are displayed correctly, but the third line is not working properly.

console.log('%cHello-hello-hello', 'color: #5865f2; font: 700 68px sans-serif;-webkit-text-stroke: 2px black;');
console.log('%cat the link below', 'color: #5865f2; font: 700 24px sans-serif;');
console.log('%chttps://stackoverflow.com/', 'color: #000; font: 700 18px sans-serif;');

Write a Comment

Your email address will not be published. Required fields are marked *

x