/FizzBuzzJS

The FizzBuzz problem in JavaScript

Primary LanguageJavaScript

FizzBuzz.js

Replace any number divisible by 3 with "Fizz"

Replace any number divisible by 5 with "Buzz"

Replace any number divisible by both with "FizzBuzz"

Used an initial loop to populate an array and populated the contents of that array using the above rules.

Just a demonstration :)