Articles → JavaScript → Console.Dir() Method In Javascript

Console.Dir() Method In Javascript






Purpose





Syntax


console.dir(javascript_object)



Example




  1. Open chrome browser
  2. Go to google.com (you can open any website).
  3. Press F12. Console window appears
  4. Go to console tab. Write the following command and press enter.
console.dir(window.navigator)



Output


Picture shows the list of properties of an object using console.dir method in javascript



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, June 1, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250