Agreed on the decrements part, but I will still assign elements.length to some variable so that it is not calculated every time (since I didn't do it last time I submitted it for a code review).