In JavaScript, a Function to Add Numbers from 1 to 4 Million Using the Modulus Operator
Posted on June 11, 2015 in Algorithms, JavaScript by Matt Jennings
/*
Add numbers 1 through 4 million inclusive that are
divisible by 3 or 5 but NOT divisible by 3 AND 5
*/
function …