Dynamic Imports (import())
How do dynamic imports differ from static imports in terms of syntax?
Dynamic imports and static imports differ significantly in syntax: 1) Static imports use the 'import' declaration statement (import x from 'module'), 2) Dynamic imports use the import() function call syntax which returns a Promise, 3) Static imports must be at the top level of a module, 4) Dynamic imports can be used anywhere in the code, including inside functions and conditional blocks, 5) Static imports are part of the module structure and are processed before execution, 6) Dynamic imports are executed as part of the program flow when the function is called, 7) Static imports must use string literals for module specifiers, 8) Dynamic imports can use expressions for module specifiers, enabling dynamic path construction.