Files

30 lines
651 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Use * to Import Everything from a File
---
# Use * to Import Everything from a File
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
If you want to import everything possible from a file, then you use the `import * as _ from` syntax, provided by ES6. That's exactly what you're tasked at doing in this challenge!
---
## Hints
### Hint 1
2018-10-12 15:37:13 -04:00
Fill in the blanks: `import * as objName from "file-name"`. You can be creative with your `objName`, but your file name should be `capitalize_strings`.
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```javascript
"use strict";
import * as str from "capitalize_strings";
```
</details>