DEV Community

Cover image for 6 JavaScript console methods like Taylor Swift folklore lyrics

6 JavaScript console methods like Taylor Swift folklore lyrics

Lizzie Siegle on July 30, 2020

This blog post was written for Twilio and originally published on the Twilio blog. If you do web development, you've probably used console.log at ...
Collapse
 
carlosds profile image
Karel De Smet

Entertaining read, thanks!
I guess most people know about console.table but still haven't really used it. Undoubtedly, there are plenty of use cases but we're so used to console.logging that it's probably more like a last resort.

Collapse
 
leob profile image
leob • Edited

Incredible! TBH I skipped over the Taylor Swift metaphors (very nifty though) but the fact that all these console methods exist (and that at least 90% of devs are not aware of them) is amazing.

(console.time/console.timeEnd is a gem, and so is console.assert)

Collapse
 
leob profile image
leob • Edited

Maybe the album is just stronger lyrically than melodically ... speaking for myself, when it comes to music I'm always falling for the sounds and the melodies, much less for the lyrics ... if I want a good story then I'll just read a book :-)

(well a lot of music is instrumental so doesn't even have lyrics)

Collapse
 
lizziepika profile image
Lizzie Siegle

It is a bit sad for me, but as someone who's recently begun getting into both reading and writing again, I really appreciate the metaphors and symbolism and layers to the folklore lyrics. I see where you're coming from as I'm just a huge fan of some of her more upbeat songs and albums haha

Collapse
 
jalal246 profile image
Jalal 🚀

and you don't need to be Taylor fan to implement it 😂

Collapse
 
katnel20 profile image
Katie Nelson

So good, Lizzie!

Collapse
 
lizziepika profile image
Lizzie Siegle

Thank you, Katie! Had a lot of fun writing it haha

Collapse
 
pengeszikra profile image
Peter Vivo

Great post! Maybe console.dir also come handy special on DOM element. But console.assert is really helpful I never know about.

Collapse
 
paulasantamaria profile image
Paula Santamaría

Great post!
I was wondering if these can also be used to improve logging in node.js, and apparently they can. I'll definitely play around with these later.

Collapse
 
tayariqueens13 profile image
𝔗𝔞𝔶𝔩𝔬𝔯 & ɐuɐᴉɹ∀ 🅴

I'm not a developer and I don't code, I just clicked because I saw Taylor Swift name 😂 but this would SO be me as a developer tho.✌🏻

Collapse
 
lizziepika profile image
Lizzie Siegle

LOL now you can be a developer by using some of these too <3 :D