Created
June 22, 2018 11:14
-
-
Save pertrai1/64b30ee1bd87bbb5e0499715dcd722a9 to your computer and use it in GitHub Desktop.
CSX Function Challenge 4
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
let calls = ""; | |
function jerry(str) { | |
kramer('Jerry'); | |
} | |
function george(str) { | |
calls = str + 'George'; | |
elaine(calls); | |
} | |
function elaine(str) { | |
calls = str + 'Elaine'; | |
} | |
function kramer(str) { | |
calls = str + 'Kramer'; | |
george(calls) | |
} | |
// should return: 'JerryKramerGeorgeElaine' | |
calls = jerry(calls); | |
console.log(calls); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment