Write a program that prints out the numbers 1 to 100 (inclusive).
If the number is divisible by 3, print Fizz instead of the number. If it's divisible by 5, print Buzz. If it's divisible by both 3 and 5, print FizzBuzz.
document.getElementById('results').innerHTML += val + ', ';
Preparation code output
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Caching, single var
Compare results of other browsers
You can edit these tests or add even more tests to this page by appending
/edit to the URL. Here’s a list of current revisions for this page:
- Revision 2: published by Daemonl
- Revision 3: published by Daemonl
- Revision 4: published by K-Bone Stallone
- Revision 5: published
- Revision 6: published by K-Bone Stallone
- Revision 7: published by K-Bone Stallone
- Revision 8: published by K-Bone Stallone
- Revision 9: published by Bo
- Revision 11: published by Derek