Created
August 23, 2017 02:31
-
-
Save claudiainbytes/fa9d7decba38b5c42bf20dc0dce068af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (5-4) | |
| */ | |
| var laugh = function(num){ | |
| var x = 1; | |
| var output = ""; | |
| while ( x <= num ){ | |
| output += "ha"; | |
| x++; | |
| } | |
| return output + "!"; | |
| }; | |
| console.log(laugh(10)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment