The freeCodeCamp Forum
JAVA SCRIPT loop ,help
SerafimPoch
August 31, 2016, 2:01pm
1
Pasted image
1600×900 126 KB
Why total equal 20?
kevcomedia
August 31, 2016, 2:06pm
2
You were adding the numbers in
myArr
.
2 + 3 + 4 + 5 + 6 = 20
SerafimPoch
August 31, 2016, 2:08pm
3
thanks.
Related topics
Topic
Replies
Views
Activity
Iterate Through an Array with a For Loop: "total should equal 20"?
JavaScript
3
1214
January 25, 2021
Iterate Through an Array with a For Loop how did we get "20"
JavaScript
10
852
March 12, 2021
freeCodeCamp Challenge Guide: Iterate Through an Array with a For Loop
Guide
32
244875
January 7, 2025
Hi, Can someone explain why total gives number 20 after I run the code?
JavaScript
2
288
January 5, 2022
Iterate Through an Array with a For Loop Getting Total to 20
JavaScript
4
678
January 25, 2021