Application function of in-place call in JavaScript

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

javascriptlet sum = 1 + function() {
  return 2;
}();

console.log(sum); // shows 3
Задание 1

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

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