projectkevin / FizzBuzzJS

The FizzBuzz problem in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)

About

The FizzBuzz problem in JavaScript


Languages

Language:JavaScript 100.0%