+ 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 Réponse
+ 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