JAVA SCRIPT loop ,help

Why total equal 20?

You were adding the numbers in myArr.

2 + 3 + 4 + 5 + 6 = 20

thanks.:slight_smile: