DEV Community

Discussion on: 5 JavaScript Console Methods That will Improve your Debugging Skills🚀

Collapse
 
ammartinwala52 profile image
Ammar Tinwala

Thanks for this article. There is one thing I wish you would have added.
console.log({}). This way of debugging helps when we need to name the output's that we are printing on the console.

e.g: console.log({testData: 'abc'});

We can directly use variables in the console.log in the above way that will give us the name of the variable along with the output.

Collapse
 
qbentil profile image
Bentil Shadrack

Thank you for the addition.
Really welcomed🙌