new to Javascript, I am going through closures and just wondering What the outer function variable and outer function is in this closure?
function hello(name, age) {
var message = name + ", who is " + age + " years old, says hi!";
return function sayhi() {
console.log(message);
};
}
var sayHelloToJohn = hello("John", 33);
sayHelloToJohn();