F12
Ctrl + Shift + I
Cmd + Opt + I
console.log( MESSAGE )
console.info( MESSAGE )
console.warn( MESSAGE )
console.debug( MESSAGE )
console.error( MESSAGE )
console.dir( MESSAGE )
Gdzie MESSAGE
może być czymkolwiek.
debugger
w kodzie aplikacjiconst doSomeStuff = () => Math.random();
console.time('doSomeStuff execution time');
doSomeStuff();
console.timeEnd('doSomeStuff execution time');
// doSomeStuff execution time: 0.009033203125ms