Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //function fizz_buzz(num){
- if(num%3==0 && num%5==0)
- console.log("fizz buzz");
- else if(num%5==0)
- console.log("buzz");
- else if (num%3==0)
- console.log("fizz");
- }
- fizz_buzz(15)//
- function random_machine(array)
- {
- elementnum=array.length;
- Math.floor((Math.random() *elementnum + 1);
- }
- random_machine(5,4,3)
Add Comment
Please, Sign In to add comment