Skip to content

Instantly share code, notes, and snippets.

@asm-jaime
Created August 15, 2016 02:32
Show Gist options
  • Save asm-jaime/ca09592afad0b1cc740013749b144447 to your computer and use it in GitHub Desktop.
Save asm-jaime/ca09592afad0b1cc740013749b144447 to your computer and use it in GitHub Desktop.
easy fizz buzz realization
'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