Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Console.log CSS styling


//example 1: (Default "STOP" you see when opening the console)
console.log(
        "%cStop!",
        "color:red;font-family:system-ui;font-size:4rem;-webkit-text-stroke: 1px black;font-weight:bold"
      );
//example 2:
console.log("%c" + someVariable, 'color:blue;border:2px solid red');
//example 3:
console.log("%cWord 1 %cWord2  ", 'color:red;border:2px solid blue;background:green','color:blue;border:2px solid red');
Comment

console log style

console.log("%cThis is a green text", "color:green");
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript date difference in months 
Javascript :: jest check binary 
Javascript :: batch md 
Javascript :: postman alternative 
Javascript :: Use the correct Date method to extract the year (four digits) out of a date object. 
Javascript :: jest assert if empty array 
Javascript :: update table remove a key from json object mysql 
Javascript :: javascript number to words 
Javascript :: JavaScript Regex - Remove Whitespace from Start and End 
Javascript :: react native center text vertically full screen 
Javascript :: react native run ios select simulator 
Javascript :: how to get today date in javascript 
Javascript :: document load complete jquery 
Javascript :: get time from a date time in jquery 
Javascript :: AppBridgeError shopify 
Javascript :: adonis join with multi condictions 
Javascript :: js element.scrollintoview navbar 
Javascript :: remove attribute disabled javascript 
Javascript :: js get string byte size 
Javascript :: eslint linebreak style 
Javascript :: js get all iframes 
Javascript :: javascript get last element of array 
Javascript :: lua manifest code 
Javascript :: react native cannot make request on localhost 
Javascript :: .replace is not a function 
Javascript :: only positive numbers and decimals input js 
Javascript :: javascript keep only letters in string 
Javascript :: next js install swr 
Javascript :: js nullish 
Javascript :: javascript map return array with distinc values 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =