Beginner
JavaScript
Q14 / 100
What is the this keyword in a regular function vs arrow function?
Correct! Well done.
Incorrect.
The correct answer is B) In regular functions, this is dynamic (call-site determined). In arrow functions, this is lexically bound to the enclosing scope
B
Correct Answer
In regular functions, this is dynamic (call-site determined). In arrow functions, this is lexically bound to the enclosing scope
Explanation
Arrow functions don't have their own this. They capture this from the surrounding context, which avoids the classic callback this-binding problem.
Progress
14/100