Question 44
Question
Answer
function outer() {
const value = 'hello'; // This is part of the outer function's scope
function inner() {
console.log(this); // In this case, 'this' refers to the global object (window in browsers)
}
inner();
}
outer(); Last updated