Console.log() vs console.dir()
Dec 26, 2022 · 2 min read · Both methods console.log() and console.dir() are used to display contents in the console of the browser. Console.log() The console.log() method prints out the object in the console in the form of string to the user. It returns the object in its strin...
Join discussion














