Created
August 15, 2016 02:32
-
-
Save asm-jaime/ca09592afad0b1cc740013749b144447 to your computer and use it in GitHub Desktop.
easy fizz buzz realization
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
'use strict' | |
let rem = true; | |
for(let i = 1; i<101; ++i){ | |
if(!(i%3)){console.log("Fizz"); rem = false;}; | |
if(!(i%5)){console.log("Buzz"); rem = false;}; | |
if(!(i%15)){console.log("FizzBuzz"); rem = false;}; | |
if(rem)console.log(i); | |
rem = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment