Great tip given in general. This is called working smart. Although for all the devs out there I would suggest you to use debugger because the habit of writing console.log() will become very confusing to find any error especially when your project scales up.