This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var TO_RUN = 20; | |
var sum = count = time = last = 0; | |
var first = false; // ignore the first time loop | |
var fn = function(){ | |
time = new Date().getTime(); | |
if(first === true){ | |
sum += time - last; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i = 1; i <= 100; i++){ | |
console.log(i%3 === 0 && i%5 === 0 && 'FizzBuzz' || i%3 === 0 && 'Fizz' || i%5 === 0 && 'Buzz' || i); | |
} |
NewerOlder