👨💻
👨💻
👨💻
👨💻
Learn to Code
Search…
👨💻
👨💻
👨💻
👨💻
Learn to Code
Welcome
HTML
The Basics
Getting Started
JavaScript
The Basics
Intro to the DOM
Working with the DOM
Activities
Text Summariser
Greeter Function
Fizz Buzz
Temperature Converter
Powered By
GitBook
Fizz Buzz
Count from 1 to 50 and print the numbers out:
If a number is a multiple of three, print ‘Fizz’.
If it’s a multiple of 5, print ‘Buzz’.
If it’s a multiple of 3 and 5, print ‘FizzBuzz’.
For everything else, print the number itself. Note: You may wish to use arithmetic operator remainder (%):
Previous
Greeter Function
Next
Temperature Converter
Last modified
2yr ago
Copy link