ES5 Extends
Implement a myExtends helper that mimics ES5 prototype-based inheritance by combining two constructor functions into one, with constructor stealing, a shared prototype chain, and static inheritance.
Asked in frontend interviews at
Amazon,
Google,
Uber and 2 more