+
+
```html
-
- // add your code below
- // add your code above
+
+
+
+
+
+
+
```
+
## Solution
```html
-
- // add your code below
- // add your code above
+
+
+
+
+
+
+
```
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-export-to-reuse-a-code-block.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-export-to-reuse-a-code-block.english.md
index aa2e3ca0f6..20c30dabcb 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-export-to-reuse-a-code-block.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-export-to-reuse-a-code-block.english.md
@@ -6,7 +6,7 @@ challengeType: 1
## Description
-Imagine you have a function, capitalizeFirstLetter
, that simply takes in a string, and returns the string with the first letter capitalized. You want to use this function in three different javascript files. In order to share the function with the files, you need to first export
it.
+Imagine you have a function, capitalizeFirstLetter
, that simply takes in a string and returns the string with the first letter capitalized. You want to use this function in several different javascript files. In order to share the function with the files, you need to first export
it.
```js
export const capitalizeFirstLetter = (string) => {
@@ -24,6 +24,7 @@ const capitalizeFirstLetter = (string) => {
export { capitalizeFirstLetter };
```
+After you export a function like this, you can import it in another file to use without having to rewrite the function.
## Instructions
@@ -52,8 +53,7 @@ tests:
```js
"use strict";
-const foo = "bar";
-const bar = "foo";
+
```