diff --git a/curriculum/challenges/english/blocks/lab-random-background-color-changer/66b62d0ad68488dd76228d6c.md b/curriculum/challenges/english/blocks/lab-random-background-color-changer/66b62d0ad68488dd76228d6c.md index f9c570c0480..cb09c9649ac 100644 --- a/curriculum/challenges/english/blocks/lab-random-background-color-changer/66b62d0ad68488dd76228d6c.md +++ b/curriculum/challenges/english/blocks/lab-random-background-color-changer/66b62d0ad68488dd76228d6c.md @@ -35,7 +35,7 @@ assert.isArray(darkColorsArr); You should fix the capitalization error in the `math.random()` line. ```js -assert.match(getRandomIndex.toString(), /\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*/); +assert.match(getRandomIndex.toString(), /\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*/); ``` You should round `darkColorsArr.length * Math.random()` down to the nearest whole number.