Classic JavaScript gotcha: why does this print 3, 3, 3 instead of 0, 1, 2?
Here's a classic JavaScript "gotcha": why does this print 3, 3, 3 and NOT 0, 1, 2! Ania explains here.
freeCodeCamp.org
Learn to code for free....