--- id: 5cddbfd622f1a59093ec611d title: Create a Module Script challengeType: 1 --- ## Description
Javascript started with a small role to play on an otherwise mostly html internet. Today, it’s huge, and some websites are built almost entirely with javascript. In order to make javascript more modular, clean, and maintainable, ES6 introduced a way easily share code amongst javascript files. This involves exporting parts of a javascript file for use in one or more other files, and importing the parts you need to each file. In order to take advantage of this functionality, you need to create a script in your html file with a type of module. Here’s an example: ```html ``` A script that uses this module type can now use the import and export features you will learn about in the upcoming challenges.
## Instructions
Add a script to the html document of type module and give it the source file of index.js
## Tests
```yml tests: - text: var should not exist in code. testString: getUserInput => assert(!getUserInput('index').match(/var/g),'var should not exist in code.'); ```
## Challenge Seed
```html // add your code below // add your code above ```
## Solution
```html // add your code below // add your code above ```