Arrow functions do not have their own this keyword; instead, they ________ the this value from the enclosing execution context.
- Absorb
- Inherit
- Borrow
- Capture
Arrow functions in JavaScript do not have their own this context. Instead, they inherit the this value from the enclosing execution context. This behavior is different from regular functions, which have their own this binding.
Loading...
Related Quiz
- In destructuring assignment, _________ can be used to gather the rest of the elements/properties into a new array or object.
- Can a module have both named and default exports?
- In a scenario where you are extending a base class, how would overriding and extending methods impact the functionality of your derived class?
- When importing a named export, what syntax must you use?
- In a function that accepts a variable number of arguments and needs to pass them to another function, how would the rest operator be applied?