From 7ee3281428b17df7ac9c30ee36f68dfe592438cb Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Fri, 30 May 2025 22:41:21 +1200 Subject: [PATCH] fix(curriculum): allow any inventory array declaration in Inventory Management Program (#60606) --- .../66d75dd0aa65a71600dc669b.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-inventory-management-program/66d75dd0aa65a71600dc669b.md b/curriculum/challenges/english/25-front-end-development/lab-inventory-management-program/66d75dd0aa65a71600dc669b.md index f3585c39d73..816fed57f6f 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-inventory-management-program/66d75dd0aa65a71600dc669b.md +++ b/curriculum/challenges/english/25-front-end-development/lab-inventory-management-program/66d75dd0aa65a71600dc669b.md @@ -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`.