-
-
Save McLarenCollege/9e6732bf9483b05fcbab36ab309e6238 to your computer and use it in GitHub Desktop.
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
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