Skip to content

Commit 25c257f

Browse files
authored
fix(curriculum): switch from getUserInput to code (freeCodeCamp#48676)
1 parent bafcaaa commit 25c257f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/write-arrow-functions-with-parameters.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ Rewrite the `myConcat` function which appends contents of `arr2` to `arr1` so th
4141
You should replace the `var` keyword.
4242

4343
```js
44-
(getUserInput) => assert(!getUserInput('index').match(/var/g));
44+
assert.notMatch(code, /var/g);
4545
```
4646

4747
`myConcat` should be a constant variable (by using `const`).
4848

4949
```js
50-
(getUserInput) => assert(getUserInput('index').match(/const\s+myConcat/g));
50+
assert.match(code, /const\s+myConcat/g);
5151
```
5252

5353
`myConcat` should be an arrow function with two parameters
@@ -68,7 +68,7 @@ assert.deepEqual(myConcat([1, 2], [3, 4, 5]), [1, 2, 3, 4, 5]);
6868
The `function` keyword should not be used.
6969

7070
```js
71-
(getUserInput) => assert(!getUserInput('index').match(/function/g));
71+
assert.notMatch(code, /function/g);
7272
```
7373

7474
# --seed--

0 commit comments

Comments
 (0)