Another Example

  • What happens in the code below?
function add(a, b) {
    return a + b;
}

function multiply(a, b) {
    return a * b;
}

console.log( multiply(2, add(1,2)) );

4 / 21