“Konsole” Code-Antworten

Konsole

console.log("%c%s",
            "color: red; background: yellow; font-size: 24px;",
            "WARNING!");
Xerothermic Xenomorph

Konsole

console.log('hello')
 
Black Bison

Konsole

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:)
Literate Lentil

Konsole

<script> 
    console.log(x);       // return undefined
    var x="hello js";       
    console.log(x);        // return "hello js" 
</script>    
Mushy Mallard

Konsole

console.log("red)
Crazy Crayfish

Ähnliche Antworten wie “Konsole”

Fragen ähnlich wie “Konsole”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen