What’s the difference between console.dir and console.log?
In Chrome the console object defines two methods that seem to do the same thing: console.log(…) console.dir(…) I read somewhere online that dir takes a copy of the object before logging it, whereas log just passes the reference to the console, meaning that by the time you go to inspect the object you logged, it … Read more