-
-
Save meliga/2fb52c40eb43d01d3cc4070ee2854ba3 to your computer and use it in GitHub Desktop.
FizzBuzz - JavaScript Eloquente
This file contains 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 (counter = 0; counter <= 100; counter++) | |
if (counter % 5 == 0 && counter % 3 == 0) | |
console.log("FizzBuzz"); | |
else if (counter % 3 == 0) | |
console.log("Fizz"); | |
else if (counter % 5 == 0) | |
console.log("Buzz"); | |
else | |
console.log(counter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment