From 38c99d7ff55f98e214ac1ef426cea9719f10556c Mon Sep 17 00:00:00 2001 From: Lewis Horwood Date: Thu, 7 Mar 2019 08:57:43 +0900 Subject: [PATCH] Simplify challenge wording (#25120) * Simplify challenge wording * Update use--to-import-everything-from-a-file.english.md --- .../es6/use--to-import-everything-from-a-file.english.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file.english.md index ebd98efba2..50d8648a2a 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use--to-import-everything-from-a-file.english.md @@ -6,17 +6,17 @@ challengeType: 1 ## Description
-Suppose you have a file that you wish to import all of its contents into the current file. This can be done with the import * syntax. +Suppose you have a file and you wish to import all of its contents into the current file. This can be done with the import * syntax. Here's an example where the contents of a file named "math_functions" are imported into a file in the same directory:
import * as myMathModule from "math_functions";
myMathModule.add(2,3);
myMathModule.subtract(5,3);
And breaking down that code:
import * as object_with_name_of_your_choice from "file_path_goes_here"
object_with_name_of_your_choice.imported_function
-You may use any name following the import * as portion of the statement. In order to utilize this method, it requires an object that receives the imported values. From here, you will use the dot notation to call your imported values. +You may use any name following the import * as portion of the statement. In order to utilize this method, it requires an object that receives the imported values (i.e., you must provide a name). From here, you will use the dot notation to call your imported values.
## Instructions
-The code below requires the contents of a file, "capitalize_strings", found in the same directory as it, imported. Add the appropriate import * statement to the top of the file, using the object provided. +The code in this file requires the contents of another file, "capitalize_strings", that is in the same directory as the current file. Add the appropriate import * statement to the top of the file, using the object provided.
## Tests