Application function of in-place call in JavaScript

Let's use an in-place function call as one of the terms:

let sum = 1 + function() { return 2; }(); console.log(sum); // shows 3

Determine what will be output to the console without running the code:

let result = function() {return 1;}() + function() {return 2;}(); console.log(result);
enru