Skip to content

Instantly share code, notes, and snippets.

@CamoCatX
Created May 27, 2023 15:48
Show Gist options
  • Save CamoCatX/a79097008e21013a62135292ac6845d8 to your computer and use it in GitHub Desktop.
Save CamoCatX/a79097008e21013a62135292ac6845d8 to your computer and use it in GitHub Desktop.
Fizzbuzz.js
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