JSFiddle - React, Tailwind, and code Playground
JavaScript
var euler = function(endValue) {
var count = 0;
for (var i = 0; i<endValue; i++) {
if (i % 3 === 0 || i % 5 === 0) {
count += i;
}
} return count;
};
alert(euler(1000));