Skip to main content
Version: 3.27.2

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.