Skip to main content

this, arrow functions, call, apply and bind

Compare method calls, detached calls, explicit binding and arrow functions. Give one example of a callback losing its receiver.

Official Reference

Model Answer & Explanation

For an ordinary method call obj.fn(), this is obj. A plain strict-mode call supplies undefined. call and apply invoke immediately, with positional arguments for call and an array-like list for apply. bind creates a new function with a fixed receiver for ordinary calls. Arrows use surrounding this, so call, apply and bind cannot change their this.

Follow-up Interview Question · Does destructuring a method preserve its original receiver?

Module Context & References

JavaScript · Language theory Explain scope, closures, this, prototypes, equality and references
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.