dir

console.dir(object)

Prints JavaScript representations of the object.

Parameters

Description

object

JavaScript object to print.

#Example
var student = {
  "name": "Niki",
  "year": "Junior",
  "major": "User Design"
};

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