Title:
Amazon - Frontend Engineer II - Phone Interview
Description:
Level: Frontend Engineer II
Education: Master’s
Years of Experience (YOE): 5
Questions Asked:
Implement Pub/Sub System in JavaScript:
- Design a publish-subscribe system with the ability to
subscribe(eventName, callback)
,unsubscribe(eventName, callback)
, andpublish(eventName, data)
. - Emphasis was on clean OOP structure, and efficient solution.
- Bonus discussion on edge cases (e.g., duplicate subscribers, unsubscribing during execution).
Outcome:
The solution passed all edge cases and led to a positive result — moving to the next round (onsite)!
Grateful for the opportunity and looking forward to what’s next.