Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. // Write your code below
  2. var x = 10;
  3.  
  4. if (x % 3 === 0 && x % 5 === 0) {
  5. result = "fizzbuzz";
  6. }
  7. else if (x % 3 === 0) {
  8. result = "fizz";
  9. }
  10. else if (x % 5 === 0) {
  11. result = "buzz";
  12. }
  13. else {
  14. result = x;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement