EPAM Systems Interview Question

Interviewer asked me to write polyfil for Array.map, and another array related problem. Mostly concentrated on basics. hoisting, closure, this value, binding, forin vs forof vs forEach, Promises. in React useRef, ErrorBoundaries, useMemo, useCallback. SOLID principles.