Edit Instructions Text To Make Goal Clearer (#35887)
* Edit Instructions Text To Make Goal Clearer The instructions end with "using the object provided" which is unclear since the user is expected to create their own name for the object. Users may think they need to reference an object name and be confused when they do not find it. Reiterating that the user needs to create the name for the object themselves makes the task clearer. * Updated commit based on comments
This commit is contained in:
committed by
The Coding Aviator
parent
6c02554045
commit
dae22c95c3
@ -6,7 +6,7 @@ challengeType: 1
|
|||||||
|
|
||||||
## Description
|
## Description
|
||||||
<section id='description'>
|
<section id='description'>
|
||||||
Suppose you have a file and you wish to import all of its contents into the current file. This can be done with the <code>import *</code> 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 <code>import * as</code> syntax.
|
||||||
Here's an example where the contents of a file named <code>"math_functions"</code> are imported into a file in the same directory:
|
Here's an example where the contents of a file named <code>"math_functions"</code> are imported into a file in the same directory:
|
||||||
<blockquote>import * as myMathModule from "math_functions";<br>myMathModule.add(2,3);<br>myMathModule.subtract(5,3);</blockquote>
|
<blockquote>import * as myMathModule from "math_functions";<br>myMathModule.add(2,3);<br>myMathModule.subtract(5,3);</blockquote>
|
||||||
And breaking down that code:
|
And breaking down that code:
|
||||||
@ -16,7 +16,7 @@ You may use any name following the <code>import * as </code>portion of the state
|
|||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id='instructions'>
|
<section id='instructions'>
|
||||||
The code in this file requires the contents of another file, <code>"capitalize_strings"</code>, that is in the same directory as the current file. Add the appropriate <code>import *</code> statement to the top of the file, using the object provided.
|
The code in this file requires the contents of another file, <code>"capitalize_strings"</code>, that is in the same directory as the current file. Add the appropriate <code>import * as</code> statement to the top of the file.
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
Reference in New Issue
Block a user