intro
As much as I hope that things will always work from first try, better to be prepared to debug it. console.log remains the main tool to do it, because it is the simplest and fastest.
Few console methods are known to everybody, log, warn and error.
Going deeper
There are more tricks to it.
count
For example, if you need to count how many times component re-render can use console.count, e.g. console.count('comp1')
After click
dir
Can log properties of an object with console.dir
time
Can measure how long some operation takes with console.time
clear
Clear things up with console.clear()
Related
Check out great old post - https://dev.to/lissy93/fun-with-consolelog-3i59
SOCIAL SHARE CARD GENERATOR