Is adding console a better way to debug node?
We all make mistakes in our logics while creating a new feature or algorithm. As soon as we don’t get the expected output of the code in node we start inserting console.log() at all the places to see the result at multiple locations.