Created
May 27, 2023 15:48
-
-
Save CamoCatX/a79097008e21013a62135292ac6845d8 to your computer and use it in GitHub Desktop.
Fizzbuzz.js
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 (var i = 0; i <= 100; i++){ | |
var results = ""; | |
if(i % 3 === 0) results += "Fizz"; | |
if(i % 5 === 0) results += "Buzz"; | |
console.log(results || i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment