Odd (to me) behavior of JS objects and console.log()
I am unsure why console.log() prints out the final value of the object, instead of printing out the current state of the object as I log them to the console.
I create an object, then console.log() it. Then I call a function (func1) to mutate object.a, then console.log() it. Again with func2 to mutate object.a and then log it. However, console.log() has the same output...? I hope that makes sense, any help would be appreciated. Thanks