Unit 7 Lesson 8- student's code stuck in a loop

Our class is currently in unit 7 lesson 8 where they are making code for a library. One of my student’s code seems to be getting stuck in this conditional in a loop and whether is it spring fever or tired eyes, we are having a difficult time debugging why.

Any help would be appreciated!

Line 15 looks off …

Shouldn’t it be:

for (var i = 0; i < popularity.length-1; i++) {

without the i < part, I don’t think it will count properly.

Mike

Mike, thank you! I think sometimes the longer I stare at some of these, the easier it becomes for me to miss the simple set up issues.