Question 6 of 10Pro Only

Explain how the "this" keyword works in JavaScript. How does it behave differently in arrow functions vs regular functions?

Sample answer preview

## How "this" Works The **this** keyword in JavaScript refers to the object that is executing the current function. Its value is determined by **how** a function is called, not where it's defined. ## Rules for this in Regular Functions ### 1.

thisbindcallapplyarrow functionlexical this

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Full-Stack Developer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime