I'm reading an article on the MDN website about loops and iteration. I'm trying to understand why we are getting the 1, 3, 7, 12 as a result from the following?:
var i = 0;
var n = 0;
while (i < 5) {
i++;
if (i == 3) {
continue;
}
n += i;
}
Wouldn't the continue statement cause it to skip 3?