Skip to content

Latest commit

 

History

History

quiz-6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Laugh It Off 2

Directions:

Write a function called laugh() that takes one parameter, num that represents the number of "ha"s to return.

TIP: You might need a loop to solve this!

Here's an example of the output and how to call the function that you will write:

console.log(laugh(3));

Prints: "hahaha!"