jeudi 29 avril 2021

Not able to display the sum of for loop [closed]

I am making a code that finds the sum of all numbers from 80 to 200. The array and loop work fine, the problem I have is that it will not display the sum on Chrome. What am I missing?

rangeSum([80,200]); function rangeSum(arr) { var sum = 0; { for (i = arr[0]; i

Aucun commentaire:

Enregistrer un commentaire