Pretty JavaScript Console Messages

If you’ve ever opened up your browser tools while logged into Facebook you might have noticed the above in it (at least, this is what it looks like at the time of writing).
DOM warning aside, it looks a bit different to most console.log messages you’re…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

If you’ve ever opened up your browser tools while logged into Facebook you might have noticed the above in it (at least, this is what it looks like at the time of writing). DOM warning aside, it looks a bit different to most console.log messages you’re probably generating, doesn’t it? A big bit of red text and some other slightly larger text. That’s a bit weird, isn’t it? As it turns out the console functions have a number of formatting options, so if you want to display numbers to certain decimal places you can use %.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-09-29T05:12:16+00:00) » Pretty JavaScript Console Messages. Retrieved from https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/.
MLA
" » Pretty JavaScript Console Messages." Posts on LINQ to Fail | Sciencx - Thursday March 14, 2019, https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/
HARVARD
Posts on LINQ to Fail | Sciencx Thursday March 14, 2019 » Pretty JavaScript Console Messages., viewed 2022-09-29T05:12:16+00:00,<https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Pretty JavaScript Console Messages. [Internet]. [Accessed 2022-09-29T05:12:16+00:00]. Available from: https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/
CHICAGO
" » Pretty JavaScript Console Messages." Posts on LINQ to Fail | Sciencx - Accessed 2022-09-29T05:12:16+00:00. https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/
IEEE
" » Pretty JavaScript Console Messages." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/. [Accessed: 2022-09-29T05:12:16+00:00]
rf:citation
» Pretty JavaScript Console Messages | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2019/03/14/pretty-javascript-console-messages/ | 2022-09-29T05:12:16+00:00
https://github.com/addpipe/simple-recorderjs-demo