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 is Object.is different from the === operator?
Object.is works like === with two differences: Object.is(NaN, NaN) is true, and Object.is(0, -0) is false. React uses it to compare state values.
IntermediateQuick answer1 min read