The export statement is used to export functions, objects or primitives from a given file (or module).
There are two different types of export.
1. Multiple named exports
and import will be like as below
We can also import the complete module:
Import a single member of a module.
Import a member with a more convenient alias.
we can use both default export and named exports like as below:
2. Single default export
It should be only one defaul export per script.
Export a single value from the module then you can use default export.