S.no Export Import
1. In JavaScript, the export statement is used when creating modules for JavaScript to export functions, primitive values or objects from the blades so they can be used by the programs with import statement which works opposite to it. The import statement is used when we import buildings which are exported by another module. All imported modules are in strict mode. This statement can’t be used in embedded scripts.
BY Best Interview Question ON 25 Aug 2022