From 47c0a826f68d9a2ceba730860c79a3c6070cf985 Mon Sep 17 00:00:00 2001 From: David Flick Date: Sun, 14 May 2017 13:19:40 -0400 Subject: [PATCH] fix(seed) Typo in Use export to Reuse a Code Block (#14857) --- .../02-javascript-algorithms-and-data-structures/es6.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index eddfbe02345..861aea3153c 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -748,7 +748,7 @@ "The following is what we refer to as a named export. With this, we can import any code we export into another file with the import syntax you learned in the last lesson. Here's an example:", "
const capitalizeString = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
}
export { capitalizeString } //How to export functions.
export const foo = \"bar\"; //How to export variables.
", "Alternatively, if you would like to compact all your export statements into one line, you can take this approach:", - "
const capitalizeString = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
}
const foo = \"bar\";
export { capitalizeString, bar }
", + "
const capitalizeString = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
}
const foo = \"bar\";
export { capitalizeString, foo }
", "Either approach is perfectly acceptable.", "
", "Below are two variables that I want to make available for other files to use. Utilizing the first way I demonstrated export, export the two variables."