0
Can someone please explain this code to me
for(var i = 0; i < a.length; i++)
1 Answer
+ 1
This is a condition for a loop.
the variable i is incremented each time the body of the loop is executed; the loop stops when the value of i reaches the value of the length of the variable/object a.
See this in a java example:
https://code.sololearn.com/cYX2935x0acV/?ref=app