fix(curriculum): allow any inventory array declaration in Inventory Management Program (#60606)

This commit is contained in:
Supravisor 2025-05-30 22:41:21 +12:00 committed by GitHub
parent 17603b1fb1
commit 7ee3281428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`.