19 lines
352 B
Markdown
19 lines
352 B
Markdown
![]() |
---
|
||
|
title: Reuse Javascript Code Using import
|
||
|
---
|
||
|
# Reuse Javascript Code Using import
|
||
|
|
||
|
---
|
||
|
## Solutions
|
||
|
|
||
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
||
|
|
||
|
```javascript
|
||
|
import { uppercaseString, lowercaseString } from './string_functions.js';
|
||
|
// add code above this line
|
||
|
|
||
|
uppercaseString("hello");
|
||
|
lowercaseString("WORLD!");
|
||
|
```
|
||
|
|
||
|
</details>
|