Created
March 29, 2018 15:05
-
-
Save arrbxr/9893d92f3e5fec980bf0d3973574f69a to your computer and use it in GitHub Desktop.
Udacity Quiz Laugh it of created by arrbxr - https://repl.it/@arrbxr/Udacity-Quiz-Laugh-it-of
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
| function laugh(num){ | |
| var j = []; | |
| for(var i = 1; i <= num; i++){ | |
| j += "ha"; | |
| if(i == num){ | |
| j+= "!"; | |
| } | |
| } | |
| console.log(j); | |
| } | |
| laugh(8); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment