diff --git a/index.js b/index.js index 4fdbc9a..f37ad6b 100644 --- a/index.js +++ b/index.js @@ -3,5 +3,10 @@ if (isNaN(number)) { alert("Not a number, refreshing"); location.reload(); } else { - + for (let i = 1; i <= number; i++) { + output = ""; + if (i % 3 === 0) (output += "Fizz"); + if (i % 5 === 0) (output += "Buzz"); + console.log(output); + } } \ No newline at end of file