// instead of
console.log('someVar', someVar);
// I now often just do this:
console.log({someVar});
console.log({someVar, someOtherVar});
Might not be a new idea to some of you while others will frown upon using console.log
at all. I still like to share this neat little "trick" to label my variables when logging.
Top comments (0)