What value is obtained when executing the following code?
function externalFunction(x) {
function internalFunction(y) {
return x * y;
}
return internalFunction;
}
const result = externalFunction(3);
console.log(result(4));
What value is obtained when executing the following code?
function externalFunction(x) {
function internalFunction(y) {
return x * y;
}
return internalFunction;
}
const result = externalFunction(3);
console.log(result(4));