Debugging JavaScript isn’t the most fun aspect of JavaScript programming, but it’s a vital skill. This article covers two tools that will help you debug JavaScript like a pro. Imagine for a moment that the console.log() function did not exist in JavaScript….
Source: https://www.sitepoint.com/debugging-javascript-projects-vs-code-chrome-debugger/