Which module system supports dynamic loading of modules: ES6 Modules or CommonJS?
- ES6 Modules
- CommonJS
- Both support dynamic loading
- Neither supports dynamic loading
ES6 Modules support dynamic loading, allowing modules to be loaded on demand. CommonJS does not provide built-in support for dynamic loading.
Loading...
Related Quiz
- Can you define currying in JavaScript?
- In ES6, what happens when two different modules import the same dependency?
- When a function returns a new object each time it is called, even with the same inputs, is it considered a pure function?
- ________ tools are crucial in analyzing and removing unused code through tree shaking.
- When developing an application with multiple dependent asynchronous API calls, would you choose Promises or callbacks? Explain why.