JavaScript bank Language & Tooling JavaScript / 13 questions Your progress 0 / 13 done Saved in this browser. Reset All 13 Easy 2 Medium 7 Hard 4 Hide done No questions match those filters. 01 Explain the differences between CommonJS (`require`/`module.exports`) and ES Modules (`import`/`export`). Medium 02 What is the difference between named exports and default exports? What are the trade-offs of each? Easy 03 Explain dynamic `import()` and a real use case for code-splitting a route-based bundle. Medium 04 Why are ES module imports hoisted and statically analyzable, unlike CommonJS `require` calls? Hard 05 Explain circular dependency issues between modules and how each module system handles them differently. Hard 06 What is tree-shaking, and why does it require ES Modules' static structure to work effectively? Medium 07 What is a polyfill, and how does it differ from a transpiler like Babel? Easy 08 Implement a polyfill for `Array.prototype.flat` supporting arbitrary depth. Medium 09 Implement a polyfill for `Promise.all`. Hard 10 Implement a polyfill for `Object.assign`. Medium 11 Implement a polyfill for `Function.prototype.bind`. Hard 12 Implement a polyfill for `Array.prototype.includes`, correctly handling `NaN`. Medium 13 How do feature detection and polyfill loading (e.g., polyfill.io style conditional loading) work together for performance? Medium ← Previous Networking Next → Reliability