Interview Q&A / JavaScript

INTERVIEW Q&A · 71 QUESTIONS

JavaScript interview questions

Closures, the event loop, this, promises and the core language questions every frontend round asks.

  1. 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