Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Write down your function tracing

function rossy(state) {
    return (state === 4);
}

function maxwell(a, b) {
    return rossy(a) || (a > b);
}

function hammer(k, seelo, pop) {
    if (seelo) {
        return rossy(k) ? pop + k : k + pop;
    }
    else {
        return k - pop;
    }
}


let nameB = hammer('magic',  maxwell(-2, -3), 'butter');
console.log(nameB);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment