JSFiddle - React, Tailwind, and code Playground

by María Fernández

JavaScript

console.log((function codeChallengeSVIP() {
   // Used console.log to print the result in a browser console.
   // To execute it in another context, just run the function itself.
    var result = 0;
	for(var i = 1; i <= 1000; i++) {
		result += (i % 3 && i % 5) ? i : 2*i;
	}
    return result;
})());