The console.dir() static method displays a list of the properties of the specified JavaScript object.
console.dir()
MDN Reference
Optional
The
console.dir()static method displays a list of the properties of the specified JavaScript object.MDN Reference