JS

JavaScript Code Output Challenge - javascript nest...

3.

What is the output of the following code?

function outerFunction() {
  var x = 10;

  function innerFunction() {
    var y = 5;
    console.log(x + y);
  }

  innerFunction();
}

outerFunction();

undefined

15

5

10