let soma = 0;
for (let i = 1; i <= 10 ; i++) {
console.log(soma += i);
}
let numeros = [1,2,3,4,5,6,7,8,9,10];
let num = numeros.reduce((item,acumulador)=> item + acumulador);
console.log(num);
To embed this project on your website, copy the following code and paste it into your website's HTML: