Guest User

Untitled

a guest
Jun 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. for(var x=1; x<20;x++){
  12. if(x%3 === 0 && x%5 === 0){
  13. console.log("fizzbuzz");
  14. }
  15. else if(x%3 === 0){
  16. console.log("fizz");
  17. }
  18. else if(x%5 === 0){
  19. console.log("buzz");
  20. }
  21. else{
  22. console.log(x);
  23. }
  24. }
  25. </script>
  26.  
  27.  
  28.  
  29. <script id="jsbin-source-javascript" type="text/javascript">
  30. for(var x=1; x<20;x++){
  31. if(x%3 === 0 && x%5 === 0){
  32. console.log("fizzbuzz");
  33. }
  34. else if(x%3 === 0){
  35. console.log("fizz");
  36. }
  37. else if(x%5 === 0){
  38. console.log("buzz");
  39. }
  40. else{
  41. console.log(x);
  42. }
  43. }
  44. </script></body>
  45. </html>
Add Comment
Please, Sign In to add comment