For loop vs For each loop

前端 未结 0 1280
抹茶落季
抹茶落季 2020-12-22 11:31

I thought these 2 code examples did the same thing. Loop through my array and update all variables with 2. But the second code example made my program work incorrectly.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题