logo CodeStepByStep logo

parameterMystery9

Language/Type: JavaScript parameters return

The following console program uses parameters and produces four lines of output. What are they?

function main() {
    let a = 5;
    let b = 1;
    let c = 3;
    let three = a;
    let one = b + 1;
    axiom(a, b, c);
    axiom(c, three, 10);
    three = axiom(b + c, one + three, a + one);
    a++;
    b = 0;
    a = axiom(three, 2, one);
}

function axiom(c, b, a) {
    console.log(a + " + " + c + " = " + b);
    return a + b;
}
line 1
line 2
line 3
line 4

You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.