mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): allow any inventory array declaration in Inventory Management Program (#60606)
This commit is contained in:
parent
17603b1fb1
commit
7ee3281428
@ -30,7 +30,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
|
||||
You should declare an empty array named `inventory`.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /(let|const)\s+inventory\s*=\s*\[\s*\]\s*;?/)
|
||||
assert.match(__helpers.removeJSComments(code), /(let|const|var)\s+inventory\s*=\s*\[\s*\]\s*;?/)
|
||||
```
|
||||
|
||||
You should have a function named `findProductIndex`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user