Skip to content

JavaScript program to check numbers from 1-100 and print "Fizz" if the no. is divisible by 3, print "Buzz" if the no. is divisible by 5, print "FizzBuzz" if divisible by both 3 & 5 and Print the number as it is in all other cases

Notifications You must be signed in to change notification settings

coderjaiz/JS_Fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

javascript-examples

A simple JavaScript code that checks all numbers from 1-100 and Prints "Fizz" when the number is only divisible by 3, Prints "Buzz" when the number is only divisible by 5, Prints "FizzBuzz" when the number is divisible by both 3 and 5, Prints the number as it is in all other cases

Open the index.html file with any text editor and insert the right location of the FizzBuzz.js file in <script src=" ">. After that open the index.html file with any browser and press the F12 key (in most browsers) to view the output in the Console.

About

JavaScript program to check numbers from 1-100 and print "Fizz" if the no. is divisible by 3, print "Buzz" if the no. is divisible by 5, print "FizzBuzz" if divisible by both 3 & 5 and Print the number as it is in all other cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published