The FizzBuzz Game v0.5
Link: https://www.w3schools.com/js/tryit.asp?filename=G1FXR9XNN26Z
The FizzBuzz Game v0.1
Link: https://www.w3schools.com/code/tryit.asp?filename=G17IGEV7UH15
Updated on Mon., Feb. 25, 2019: The current version (v0.5) of The FizzBuzz Game now uses a web form interface. Click on the "Count up" button to count up to the next integer. Click on the "Reset" button to go back to 1. Or enter any integer in the Number: field and then click on the "Check" button to test for "Fizz" or "Buzz" or "FizzBuzz".
Use the above link to run the FizzBuzz demo (JavaScript) code.
The FizzBuzz demo will step you from number one to one hundred.
If a number is a multiple of three, the pop-up box will say: "Fizz."
If a number is a multiple of five, the pop-up box will say: "Buzz."
If a number is a multiple of three and five, the pop-up box will say: "FizzBuzz."
If a number is neither a multiple of three nor five, the pop-up box will just say the number only.
Click the OK button to continue to the next number. Click the Cancel button to stop the FizzBuzz demo.
Play with the code yourself. Edit the code.
No special software required.
Run, edit the JavaScript code in your web browser.
Comments