Skip to main content
Version: 4.0.0

console.dir()

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

Syntax​

dir(object)

Parameters​

  • object
    • : A JavaScript object whose properties should be output.

Return value​

undefined.