JSFiddle - React, Tailwind, and code Playground
by Brock Whittaker
JavaScript
dailyPrices = [0.00031433361274114, -0.0015949798604037, -0.004058197702421, -0.0095524017467248, 2.9006105785268E-5, -0.010562750472544, 0.0042653194836666, 0.0034298724865847, -0.010186567887827, 0.0041733814676392, -0.014233938039931, -0.012796595491996, 0.013162973247986, -0.0094446505875077, 0.013680225356615, 0.013569510482619];
var total = 0;
for (x = 0; x < 21; x++) {
total += dailyPrices[x];
}
document.write(total);