There are two types of exports. One is Named Exports and other is Default Exports.
Named Exports: Named exports are useful to export several values. During the import, it is mandatory to use the same name of the corresponding object.
Default Exports: Default exports are useful to export only a single object, function, variable. During the import, we can use any name to import.
Another example of Default Exports with function
Using Named and Default Exports at the same time: It is possible to use Named and Default exports in the same file. It means both will be imported in the same file.
While importing this module.js we can use any name for fun because it is a default export and curly braces for other named exports.
This is a default export. 2