HackerEarth
Frontend Engineer
Implementing Custom Reduce Function
Hard
ROUND 1codingCandidate Not Selected
Implement your own version of Array.prototype.reduce() (myReduce). Explain why extending Object.prototype is not recommended, and implement it correctly by extending Array.prototype, including support for an optional initial value.
This question was asked in
HackerEarth Frontend Engineer Interview Experience
The HackerEarth interview process involved a single round and covered a broad range of topics related to CSS, JavaScript, and React. Candidates can expect questions focused on event handling, CSS layout properties, and the workings of React hooks and components. Overall, the interview presented a moderate difficulty level, challenging candidates to demonstrate both their technical knowledge and practical coding skills.