daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //function fizz_buzz(num){
  2.   if(num%3==0 && num%5==0)
  3.     console.log("fizz buzz");
  4.   else if(num%5==0)
  5.     console.log("buzz");
  6.   else if (num%3==0)
  7.     console.log("fizz");
  8. }
  9.  
  10.  
  11.  
  12.  
  13. fizz_buzz(15)//
  14.  
  15. function random_machine(array)
  16. {
  17.   elementnum=array.length;
  18.   Math.floor((Math.random() *elementnum + 1);
  19. }
  20.   random_machine(5,4,3)
RAW Paste Data
Top