Roy Tang

roytang.net

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About
🔁 Repost from DaniStefanovic:

Wrap your console.log arguments in an object literal to print the variable name along with its value.

console.log(isLoggedIn)

console.log({ isLoggedIn })

Still one of my favorite tips from @wesbos. So simple but effective πŸ’ͺ

Wrap your console.log arguments in an object literal to print the variable name along with its value. console.log(isLoggedIn) console.log({ isLoggedIn }) Still one of my favorite tips from @wesbos. So simple but effective πŸ’ͺ
Posted by under notes at #reposts

Also on: twitter facebook /

Last modified at: Jan. 17, 2021, 5:01 a.m.. Source file