27th May 2020, 11:14 AM
Shadman Sakib
Shadman Sakib - avatar
4 Answers
+ 4
Well I would have explained it but i think your code is missing something and its not working
27th May 2020, 11:31 AM
Johar Khan
Johar Khan - avatar
+ 1
Just put any condition in line 4 like If(arr[i]%2===0) But here is what the answer will always be zero The reason is because the starting value of x is 0 so anything multiplied by 0 is 0
27th May 2020, 11:40 AM
Johar Khan
Johar Khan - avatar
0
I copied it from sololearn java script challenge but it is fault in line 4.
27th May 2020, 11:36 AM
Shadman Sakib
Shadman Sakib - avatar
0
can you fix it and explain?
27th May 2020, 11:36 AM
Shadman Sakib
Shadman Sakib - avatar