For empty cycle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

For empty cycle

for(i = 0; i < a.length; a[i++] = 0) Thith string from Flanagan book about javascript and empty function. What does it mean a[i++] = 0 ? As i undestand a is array. And how to use it in practise ?

20th Jan 2017, 7:21 PM
Alexandr Kashuba
Alexandr  Kashuba - avatar
1 Answer
+ 1
it sets every value in 'a' to zero as far as I understand
21st Jan 2017, 2:19 PM
Daniel S
Daniel S - avatar