Created
August 23, 2017 05:15
-
-
Save claudiainbytes/dd23bdcbdde34decca88b800cf61e79b 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
| // don't change this code | |
| function emotions(myString, myFunc) { | |
| console.log("I am " + myString + ", " + myFunc(2)); | |
| } | |
| emotions("happy", function (num){ | |
| var x = 1; | |
| var output = ""; | |
| while ( x <= num ){ | |
| output += "ha"; | |
| x++; | |
| } | |
| return output + "!"; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment