/fizzbuzz_js

Primary LanguageJavaScript

Fizzbuzz in Javascript

First experiment with Javascript as new language.
The program checks if a number from a user input is fizz, buzz, fizzbuzz or itself as per instructions below:

For multiples of three print "Fizz" instead of the number
For multiples of five print "Buzz"
For numbers which are multiples of both three and five print "FizzBuzz"
For the rest, print the number.