title: What differs between console.log and console.dir?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11954152/whats-the-difference-between-console-dir-and-console-log">What’s the difference between console.dir and console.log?</a>  </p>
  </blockquote>
  
  
  
  <p>I have recently learnt the existence of <code>console.dir()</code>. </p>
  
  <p>After looking through <a href="https://developer.mozilla.org/en-US/docs/DOM/console.dir" rel="nofollow noreferrer">MDN</a>, I did not clearly understand what is the real difference between this and <code>console.log</code>. They both show the same output (but <code>.dir</code> shows some properties), is that it? </p>
  
  <p>Which function should I use when debugging/developping?</p>
  
  <p><strong>EDIT:</strong> I just found out an existing question which answers my thoughts: <a href="https://stackoverflow.com/questions/11954152/whats-the-difference-between-console-dir-and-console-log">What&#39;s the difference between console.dir and console.log?</a></p>