dir

console.dir(object)

Prints JavaScript representations of the object.

ParametersDescription
objectJavaScript object to print.
#Example
var student = {
  "name": "Niki",
  "year": "Junior",
  "major": "User Design"
};

console.dir(student);
{ name: 'Niki', year: 'Junior', major: 'User Design' }