Loading…
Loading…
Twenty questions on IIFE modules, CommonJS require and module.exports, caching and circular requires, ES module imports and exports, default vs named exports, live bindings, re-exports, evaluation order, dynamic import, top-level await, import maps and Node interop.
Review quiz for Part 10 (Modules) of the JavaScript course, articles 74 to 76: from JavaScript Modules Explained: Why Modules Exist, IIFEs, Closures and CommonJS require to JavaScript Modules in Browsers and Node: script type=module, Import Maps, Dynamic import(), Top-level await and CommonJS Interop.
Questions that span several files show each file's name in a comment. Every answer was confirmed by running the code on Node.js. Aim for at least 15 out of 20 before starting Part 11.
Quiz path: step 9 of 20. Take the quizzes in this order, after reading the articles they cover.
Previous quiz: Classes Review (JavaScript Part 9)
20 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.