globalsconsoleconsole.dir()Version: 3.39.2On this pageconsole.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.