Server Code JavaScript APIConsoledirCopy Pageconsole.dir(object)Prints JavaScript representations of the object. Parameters Description object JavaScript object to print. Example JavaScriptvar student = { "name": "Niki", "year": "Junior", "major": "User Design" }; console.dir(student); Text{ name: 'Niki', year: 'Junior', major: 'User Design' }Updated about 1 year ago timeassertDid this page help you?YesNo