[Solved] console.log() shows the changed value of a variable before the value actually changes
Pointy’s answer has good information, but it’s not the correct answer for this question. The behavior described by the OP is part of a bug that was first reported in March 2010, patched for Webkit in August 2012, but as of this writing is not yet integrated into Google Chrome. The behavior hinges upon whether … Read more