From d33e89acb968c6d2a99e806f70d60ae368980c00 Mon Sep 17 00:00:00 2001 From: Prajvala R C <61898522+PrajvalaRC@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:06:33 +0530 Subject: [PATCH] fix(curriculum): All tests for the for...of loop in the Dice game should allow campers to use let or const (#54066) --- .../657e0f2a6cb19c72b8760be5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e0f2a6cb19c72b8760be5.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e0f2a6cb19c72b8760be5.md index 6bd22ea8cf1..137e42c5d0a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e0f2a6cb19c72b8760be5.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-algorithmic-thinking-by-building-a-dice-game/657e0f2a6cb19c72b8760be5.md @@ -14,7 +14,7 @@ To count the occurrences for each number, use a `for...of` loop to iterate throu You should use a `for...of` loop to iterate through the `arr` array. ```js -assert.match(code, /const\s+detectFullHouse\s*=\s*(\(\s*arr\s*\)|arr)\s*=>\s*{.*\s*for\s*\(\s*const\s+num\s+of\s+arr\s*\)\s*{\s*.*}/s); +assert.match(code, /const\s+detectFullHouse\s*=\s*(\(\s*arr\s*\)|arr)\s*=>\s*{.*\s*for\s*\(\s*(const|let|var)\s+num\s+of\s+arr\s*\)\s*{\s*.*}/s); ``` # --seed--