Guest User

Untitled

a guest
Dec 11th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. /*
  2. * Programming Quiz: Laugh (5-4)
  3. */
  4.  
  5. var laugh = function(num) {
  6. var sound = "";
  7. for (x = 1; x <= num; x++) {
  8. sound += "ha";
  9. }
  10. return sound + "!";
  11. }
  12. console.log(laugh(3));
Add Comment
Please, Sign In to add comment