InterviewDB
Experience
JavaScript Methods - Implement Array and Promise Utilities from Scratch
phone
Interview Experience
Problem Implement the following JavaScript utility functions without using the built-in equivalents: Part 1: Implement myReduce(arr, fn, initialValue) matching the behavior of Array.prototype.reduce. Part 2: Implement myPromiseAll(promises) matching Promise.all - resolves when all resolve, rejects on first rejection. Part 3: Implement myFlatten(arr, depth) matching Array.prototype.flat(depth). Follow-ups How would you implement myPromiseAllSettled that never rejects? What happens in your myReduc…
Full Details
🔒
Unlock all C3 AI questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a candidate experience report from a c3 ai interview during the phone round.
It covers the following topics: Arrays, Coding, Phone, Frontend .