Skip to content

Instantly share code, notes, and snippets.

@pertrai1
Created June 22, 2018 11:14
Show Gist options
  • Save pertrai1/64b30ee1bd87bbb5e0499715dcd722a9 to your computer and use it in GitHub Desktop.
Save pertrai1/64b30ee1bd87bbb5e0499715dcd722a9 to your computer and use it in GitHub Desktop.
CSX Function Challenge 4
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