Skip to content

Commit

Permalink
fix(curriculum): allow space after contructor keyword (freeCodeCamp…
Browse files Browse the repository at this point in the history
  • Loading branch information
Supravisor authored Aug 15, 2024
1 parent 97045bf commit cdc4f34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Add an empty `constructor` method to the `ShoppingCart` class.
You should add a `constructor` method to the `ShoppingCart` class.

```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*/)
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*/)
```

Your `constructor` method should be empty.

```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*\{\s*\}\s*\}/)
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*\{\s*\}\s*\}/)
```

# --seed--
Expand Down

0 comments on commit cdc4f34

Please sign in to comment.