diff --git a/fizzbuzz.js b/fizzbuzz.js index bd1f6cf..6fd3090 100644 --- a/fizzbuzz.js +++ b/fizzbuzz.js @@ -1,15 +1,6 @@ -// -// This is only a SKELETON file for the 'FizzBuzz' exercise. It's been provided as a -// convenience to get you started writing code faster. -// Make sure to look at test.script.js--that should give you some hints about what is -// expected here. - -'use strict'; - -var fizzbuzz = function (x) { -// -// YOUR CODE GOES HERE -// -}; - -module.exports = { fizzbuzz: fizzbuzz }; +for (let i = 1; i <= 100; i++) { + let out = ''; + if (i % 3 === 0) out += 'Fizz'; + if (i % 5 === 0) out += 'Buzz'; + console.log(out || i); +}