Infinite loop quesion

Why does the second line create an infinite loop?

for ( i = 0; i < arrLength; i + size) {
    segment = arr.slice(i, i + size + 1);

Edit: {}

Hard to say without knowing what all the variables mean and what they contain.

Can you provide more code for context?

Also, use the invite button to get specific people to help you, no need to jump into unrelated threads.

I messed up the “i + size” part in the for(). It should read “i += size”. Quite embarrassing mistake, actually. :blush:

I thank you for taking the time to look. :slight_smile:

No worries. So, is it fixed?

Yes, it is. I thank you. Is there a way for me to delete this post or close it somehow so as to not clutter the home page?