-
-
Save adamant83/22ef87941be0a30b35320d71ddd76203 to your computer and use it in GitHub Desktop.
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
| for (let i = 1; i <= 100; i++) { | |
| let output = ""; | |
| if (i % 3 === 0) { | |
| output = "Fizz"; | |
| } | |
| if (i % 5 === 0) { | |
| output += "Buzz"; | |
| } | |
| if (output === "") { | |
| output = i; | |
| } | |
| console.log(output); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment