Skip to content

Commit cdc4f34

Browse files
authored
fix(curriculum): allow space after contructor keyword (freeCodeCamp#55749)
1 parent 97045bf commit cdc4f34

File tree

1 file changed

+2
-2
lines changed
  • curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart

1 file changed

+2
-2
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63ee5fc113bcb20a5db9214b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Add an empty `constructor` method to the `ShoppingCart` class.
2323
You should add a `constructor` method to the `ShoppingCart` class.
2424

2525
```js
26-
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*/)
26+
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*/)
2727
```
2828

2929
Your `constructor` method should be empty.
3030

3131
```js
32-
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*\{\s*\}\s*\}/)
32+
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\s*\(\s*\)\s*\{\s*\}\s*\}/)
3333
```
3434

3535
# --seed--

0 commit comments

Comments
 (0)