When using console.log()
in Node.js it can be hard to spot variables you’re logging in your terminal, especially if they’re empty.
Use object shorthand so that every value has a name next to it e.g. console.log({ someVar, anotherVar });
– works with one variable or many 👌
![](https://simonplend.com/wp-content/uploads/2021/03/console-log-object-shorthand-javascript-2.png)
![](https://simonplend.com/wp-content/uploads/2021/03/console-log-object-shorthand-output.png)