Created
April 5, 2020 01:37
-
-
Save Sonia-Shurmi/34b5148d3cf8f88a85ff259b9c5b469c to your computer and use it in GitHub Desktop.
Programming Quiz: Laugh it Off 2 (5-2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Programming Quiz: Laugh it Off 2 (5-2) | |
*/ | |
function laugh(num) { | |
var ha = ''; | |
for (i = 0; i < num; i++) { | |
ha = ha + 'ha'; | |
} | |
return ha + '!'; | |
} | |
console.log(laugh(3)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment