Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. for ( var i = 1; i <= 100; i++ ) {
  2. if ( i % 15 == 0 )
  3. console.log("FizzBuzz");
  4. else if ( i % 3 == 0 )
  5. console.log("Fizz");
  6. else if ( i % 5 == 0 )
  7. console.log("Buzz");
  8. else
  9. console.log(i);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement