Javascript – When To Use console.dir() Instead Of console.log For Debugging
When debugging javascript it is common to use console.log() to print variables or messages to the browser’s dev tools console. The dir() method is another tool for logging that can be useful in certain situations. From the MDN Web Docs, console.dir() is given the following description: “The method console.dir() displays an interactive list of the properties of …
Javascript – When To Use console.dir() Instead Of console.log For Debugging Read More »