Possible duplicate:
What is the difference between console.dir and console.log?
I recently found out about the existence of console.dir() .
Looking through MDN , I did not quite understand what the real difference between this and console.log . Both of them show the same output (but .dir shows some properties), is that so?
What function should I use when debugging / developing?
EDIT: I just figured out an existing question that answers my thoughts: What is the difference between console.dir and console.log?
javascript debugging html coding-style
Jeff noel
source share