/fizzbuzz-practice-js

Small practice with FizzBuzz test.

Primary LanguageJavaScript

fizzbuzz-practice-js

Write a short program that prints each number from 1 to 100 on a new line. For each multiple of 3, print "Fizz" instead of the number. For each multiple of 5, print "Buzz" instead of the number. For numbers which are multiples of both 3 and 5, print "FizzBuzz" instead of the number.

You need to have node intalled on your machine to be able to run this test.

npm i 
npm test

You can see the log of the code writing the follow line:

node fizzbuzz