--- id: 587d7b8c367417b2b2512b55 title: Understand the Differences Between import and require challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/import\s+\{\s*capitalizeString\s*\}\s+from\s+("|")string_functions\1/g), "valid import statement");' ```
## Challenge Seed
```js "use strict"; capitalizeString("hello!"); ```
### Before Test
```js window.require = function (str) { if (str === 'string_functions') { return { capitalizeString: str => str.toUpperCase() }}}; ```
## Solution
```js // solution required ```