The coding round II: polyfills
Implement core language and library features from scratch, matching the spec's important edge cases.
- JS.15.01call, apply and bindCoreMid-levelBeing written
- JS.15.02Array map, filter, reduce, forEachCoreMid-levelBeing written
- JS.15.03Array flat and flatten with depthCoreMid-levelBeing written
- JS.15.04A Promise implementation (Promises/A+ core)CoreSeniorBeing written
- JS.15.05Promise.all, allSettled, race, anyCoreMid-levelBeing written
- JS.15.06new, instanceof and Object.createMid-levelBeing written
- JS.15.07JSON.stringify (subset) and deepEqualSeniorBeing written
Interview questions in this module
- Write a polyfill for
Array.prototype.reduce. What happens with an empty array and no initial value? - Implement
Function.prototype.callwithout usingcall/apply/bind. - Implement
Array.prototype.flatwith a depth argument, iteratively. - Implement a basic
Promiseclass withthen. - Implement
Promise.any. - Implement the
newoperator as a function. - Implement
deepEqual.