Which feature in modern JavaScript enables dynamic code splitting?
The dynamic import() function is a key feature that enables code splitting in modern JavaScript. Unlike static import statements that must be at the top level of a module, dynamic import() can be used anywhere in your code and returns a Promise. This allows for: 1) Loading modules on-demand when they're needed, 2) Conditional loading based on runtime conditions, 3) Loading different modules based on user interactions, and 4) Splitting your code into smaller chunks that can be loaded independently. This feature is widely supported by modern bundlers like webpack, Rollup, and Parcel for implementing efficient code splitting strategies.