0
Can some one help me clear this doubts in JavaScript
var sum = 0; for(i=1; i<=9; i++){ if(i%5===0lli%3==0{ sum+=i; } } output 23 why I don't just get this stuff is there any link you know where I can go and improve my js Algorithms skill , this really killing me in JS ,please help
3 ответов
+ 4
For loop will run untill i is 10.
Now when i will be 3 , 5 , 6 , 9 at that time only it will be added to sum variable because of if.
Hence 3 + 5 +6 +9 =23.
+ 2
George S Mulbah
I doesn't have any such kind of reference.
0
Meet Mehta can you give me where I can improve my Algorithms skill in js