How can I make console.log show the current state of an object?
I think you’re looking for console.dir(). console.log() doesn’t do what you want because it prints a reference to the object, and by the time you pop it open, it’s changed. console.dir prints a directory of the properties in the object at the time you call it. The JSON idea below is a good one; you … Read more