JavaScript Modules Lab

49.1% Acceptance

In this lab, you will learn how to create and use JavaScript modules. You will create a exporter.js file that exports a default and a named export. You need to import these exported values into another file index.js.

JavaScript modules are a way to share and reuse code between different files, making your code more maintainable, organized and easier to read. There are two types of exports, named exports and default exports. Named exports can have multiple exports from one file, whereas a default export can have only one export.