fork download
  1. var Fz = "FIZZ", Bz = "BUZZ", Cnt = 0;
  2. while (Cnt < 100) {
  3. Cnt = Cnt + 1;
  4. if (Cnt %3 == 0 && Cnt %5 == 0) {
  5. console.log(Fz + Bz);
  6. }
  7. else if (Cnt % 3 == 0) {
  8. console.log(Fz);
  9. }
  10. else if (Cnt % 5 == 0) {
  11. console.log(Bz);
  12. }
  13. else if (Cnt % 3 != 0 && Cnt % 5 != 0) {
  14. console.log(Cnt);
  15. }
  16. }
  17. // your code goes here
Runtime error #stdin #stdout #stderr 0.01s 30424KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:14:13 ReferenceError: console is not defined