Posts List

JavaScript Algorithms Part 3. FIZZBUZZ

JavaScript Algorithms Part 3. FIZZBUZZ Image Credits: GetYourImage.club The FizzBuzz algorithm question is one very popular algorithm problem lots of folks would have to solve, in fact, it is a very popular interview question for programmers. Question. Write a program that prints the numbers from 1 to n. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”