Answers for "javascript while loop to count to 100 and add them all together"

0

js for loop plus number

var nums = ['100','300','400','60','40'],
    sum = nums.reduce(function(accum, val) {return accum + Number(val);}, 0);
alert(sum);
Posted by: Guest on January-08-2021

Code answers related to "javascript while loop to count to 100 and add them all together"

Code answers related to "Javascript"

Browse Popular Code Answers by Language