Hi,
member a for loop clause is meant essentially three optional parts, in your case
var i = 0 - which defines at which position of you myArr the loop should start
i < myArr.length - 1: which determined at which position of your myArr the loop must end
*i++: which determine the step of each loop .
I’m suggesting you check at which position your for loop ends, and whether it’s where you intend it to end. you can do that by printing each index as the loop iterates through the array.