Skip to content

Commit

Permalink
chore: se realiza el reto #0 el famoso Fizz Buzz con JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Dancorrdev committed Dec 26, 2022
1 parent 5995fbe commit 006c59f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
for (let i = 0; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
console.log("FIZZBUZZ");
} else if (i % 3 == 0) {
console.log("FIZZ");
} else if (i % 5 == 0) {
console.log("BUZZ");
} else {
console.log(i);
}
}

0 comments on commit 006c59f

Please sign in to comment.