DEV Community

Discussion on: Understanding Javascript Array Series V - Array Loops & Iteration Part II

 
nedyudombat profile image
Nedy Udombat

This has nothing to do with prefixing and suffixing the ++ an -- operators. I am saying that, when you initialize the index to 0, when the condition (index++ < players.length-1) is executed the value of index becomes 1 and the first element of the array is skipped.