let n = [1,20,33,4,57];
let total = 0;
for (let i = 0; i < n.length; i++) {
    console.log(n[i])
    total += n[i];
};
console.log("")
console.log(total)
console.log("")
let t = n.reduce(function(acc,i){
    return acc + i;
});
console.log(t);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: