Interview Q&A / JavaScript
JavaScript interview questions
Closures, the event loop, this, promises and the core language questions every frontend round asks.
Prefer rapid revision? Practise JavaScript short interview answers →
- How does this behave inside an arrow function?
An arrow function has no this of its own. It uses the this of the surrounding code where it was written, and call, apply and bind cannot change it.
IntermediateQuick answer1 min read