{}
CHRISTMAS
OFFER
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
CHRISTMAS
OFFER
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
main.js
function sumAll(arrOf) { minNum = Math.min(...arrOf); maxNum = Math.max(...arrOf); let sum = 0; for (let i = minNum; i <= maxNum; i++) { sum += i; }; return sum; } console.log(sumAll([1,4]))
Output