3 Ways to Level Up Your Console Statements
q: how do you comfort a javascript bug?
a: ๐บ๐ฐ๐ถ ๐ค๐ฐ๐ฏ๐ด๐ฐ๐ญ๐ฆ ๐ช๐ต
โ
๐ฆ ๐ฆ ๐ฆ ๐ฆ ๐ฆ
โ
i think my sense of humor is correlated with the amount of social interaction iโve been getting these days aka close to none :โ)
โ
๐๐จ๐ซ๐ญ๐ฎ๐ง๐๐ญ๐๐ฅ๐ฒ, my love of bug squashing has not deteriorated so let me share some of my favorite console tips that will level up your console.log(โblahโ) game ๐ต๏ธโโ๏ธ๐ต๏ธโโ๏ธ
โ
swipe to see the samples โก๏ธ
โ
๐๐๐๐๐๐๐.๐๐๐๐๐
great way to display iterables && when you want to impress whoever is pair programming with you
โ
๐๐๐๐๐๐๐.๐๐๐๐๐๐
when youโre lazy to do if statements - just use console.assert(condition, msg) to log something when the condition is falsy
๐๐๐๐๐๐๐.๐๐๐(โ%๐ ๐๐๐๐๐๐๐โ, ๐๐๐ข๐๐)
when youโre feeling extra and want to spice up your console logs
happy debugging everyone! ๐ ๐ท ๐โค๏ธ
original post on instagram: https://www.instagram.com/p/B_V6eQRHXW_/