JSFiddle - React, Tailwind, and code Playground
JavaScript
const numbers = [1,2,3,4];
let total = 0;
for (i of numbers) {
total += i;
}
console.log(total)
const numbers = [1,2,3,4];
let total = 0;
for (i of numbers) {
total += i;
}
console.log(total)