Skip to content

Commit

Permalink
fix: failing challenge test because of commented out code (freeCodeCa…
Browse files Browse the repository at this point in the history
…mp#45492)

id: 587d7b87367417b2b2512b43
title: Use Arrow Functions to Write Concise Anonymous Functions
forumTopicId: 301211
dashedName: use-arrow-functions-to-write-concise-anonymous-functions

User code tests fail when seed code is left and commented out.
  • Loading branch information
raditotev authored Mar 29, 2022
1 parent 4529d86 commit 0a36905
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Rewrite the function assigned to the variable `magic` which returns a `new Date(
You should replace the `var` keyword.

```js
(getUserInput) => assert(!getUserInput('index').match(/var/g));
assert.notMatch(code, /var/g)
```

`magic` should be a constant variable (by using `const`).

```js
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
assert.match(code, /const\s+magic/g)
```

`magic` should be a `function`.
Expand All @@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
The `function` keyword should not be used.

```js
(getUserInput) => assert(!getUserInput('index').match(/function/g));
assert.notMatch(code, /function/g)
```

# --seed--
Expand Down

0 comments on commit 0a36905

Please sign in to comment.