Skip to content

Commit 2770c1d

Browse files
authored
fix(curriculum): always passing test in Shopping cart step 5 (freeCodeCamp#55539)
1 parent de6ce16 commit 2770c1d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A shopping cart does not serve much purpose without products. Declare a `product
1414
You should declare a `products` variable with `const`.
1515

1616
```js
17-
assert.match(code, /const\s+products/);
17+
assert.match(code, /const\s+products\b/);
1818
```
1919

2020
You should set the `products` variable to an empty array.

0 commit comments

Comments
 (0)