From 006c59f3d93e3084ebc8a802be1560ff462e77c2 Mon Sep 17 00:00:00 2001 From: Danilo Cortes Date: Mon, 26 Dec 2022 16:05:51 -0500 Subject: [PATCH] chore: se realiza el reto #0 el famoso Fizz Buzz con JavaScript --- .../javascript/dancorrdev.js" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/javascript/dancorrdev.js" diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/javascript/dancorrdev.js" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/javascript/dancorrdev.js" new file mode 100644 index 0000000000..004b4d729d --- /dev/null +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/javascript/dancorrdev.js" @@ -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); + } +}