From 96aa5cd59051fdfd59166c60c21bc6e2796005d9 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Tue, 2 Jan 2024 19:47:32 +0100 Subject: [PATCH] Added output for other numbers with no FizzBuzz --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index f37ad6b..b09094c 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ if (isNaN(number)) { output = ""; if (i % 3 === 0) (output += "Fizz"); if (i % 5 === 0) (output += "Buzz"); + if (!output) (output = i.toString()); console.log(output); } } \ No newline at end of file