Right Way to Use Console for Devtools
· ☕ 3 min read
Here are some effective ways of inspecting variables used in your code using browser dev tools to your advantage.
This is what we typically do in the code to know what exactly is happening with our variables.
1 2 var name = "Mr. Anderson"; console.log('before loop" + name); This will have the following beautiful output in browser console.