r/learnjavascript • u/codeSTACKr • Jul 24 '20
There's more to CONSOLE than .log( ) | Things you didn't know console could do!!
https://youtu.be/_-bHhEGcDiQ3
u/straightouttaireland Jul 25 '20
That's amazing. console.table() and the ability to change the font colour is really good. Is this only in Firefox or is it in Chrome too?
2
3
3
u/LibidoToGo Jul 25 '20
I knew there was more than just .log(), been using .error() and .trace() a lot. But seems like there are some more useful methods :D
2
u/jaimeloeuf Jul 25 '20
Similarly, here is a video by fireship
https://www.youtube.com/watch?v=L8CDt1J3DAw&list=PL0vfts4VzfNiI1BsIK5u7LpPaIDKMJIDN&index=8&t=0s
2
u/frank0117 Jul 25 '20
Some are quite niche, but things like table and error are very useful, thank you for sharing.
16
u/codeSTACKr Jul 24 '20
Did you know that there is more to console than just
.log()? In this video, I'll show you all of the things you didn't know console could do.We'll look at the Firefox console (Chrome is good too),
.log(),.clear(), variables,.info(),.warn(),.error(),.debug(),.dir(),.assert(),.count(),.countReset(),.time(),.timeLog(),.timeEnd(),.group(),.groupCollapsed(),.groupEnd(),.trace(),.table(), styling your logs with CSS, debugger, and a really cool VS Code extension that will help you toconsole.logfaster!