JavaScript Fizz Buzz

Heard this Fizz Buzz test mentioned via a couple of sources and decided to give it a go! In summary, the challenge is to output the numbers 1 to 100, replacing multiples of 3 with the word "fizz", multiples of 5 with the word "buzz", and if the number is divisible by both - replace with the word "FizzBuzz".

Sounds relatively easy, but the logic is quite interesting...


Result

  Disqus currently not enabled on this page...