Useful console.log() tips

Log variable names

Log the variable name along with the value by just wrapping it curly braces.

Log variables name

Formatting

Using string substitutions:

Log formatted message

More info at MDN website.

Helpful?

If you think this is helpful 🎈
Don't keep it to yourself 🙊

Share it with your lovely followers at twitter 🗽

lets connect viatwitter