What is the result of the following code?
function parent() {
let message = "Hello";
function child() {
console.log(message);
}
return child;
}
const instance = parent();
instance();
What is the result of the following code?
function parent() {
let message = "Hello";
function child() {
console.log(message);
}
return child;
}
const instance = parent();
instance();