Skip to content

Instantly share code, notes, and snippets.

@LukeAims
Created April 3, 2019 16:33
Show Gist options
  • Save LukeAims/97f29836a5ee8823a64608f272b63543 to your computer and use it in GitHub Desktop.
Save LukeAims/97f29836a5ee8823a64608f272b63543 to your computer and use it in GitHub Desktop.
Programming Quiz: Laugh (5-4)
/*
* Programming Quiz: Laugh (5-4)
*/
var laugh = function(numOfHa) {
var word = "";
for (i = 0; i < numOfHa; i++) {
word += 'ha';
} return `${word}!`;
};
console.log(laugh(10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment