Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Created June 2, 2021 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/9e6732bf9483b05fcbab36ab309e6238 to your computer and use it in GitHub Desktop.
Save McLarenCollege/9e6732bf9483b05fcbab36ab309e6238 to your computer and use it in GitHub Desktop.
function maxwell(a, b) {
return (a === 4) || (a > b);
}
function hammer(kop, dop, pop) {
if (dop) {
return pop + kop;
}
else {
return kop - pop;
}
}
// Guess Output
let nameA = hammer(6, maxwell(2, 3), 4);
console.log(nameA);
/*
Expected function trace output
maxwell(2, 3)
return false
hammer(6, false, 4)
return 2
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment