Answers for "the console"

4

console

console.log("%c%s",
            "color: red; background: yellow; font-size: 24px;",
            "WARNING!");
Posted by: Guest on April-18-2021
1

console

CONSOLE LOG LIKE A PRO:
Put {} to have label value pairs
// e.g console.log({data, name}); returns data: data, name: name

Console.table() puts data in table!

Console.group() ... console.groupEnd() //groups console logs inside these together 

Console.assert only logs if first param falsey!

Console.count keeps track!

console.time and console.timeLog / timeend outputs how long took.

%c first char in string to add custom css:)
Posted by: Guest on December-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language