fix(curriculum): random background random color method placement in step 3 (#55316)

This commit is contained in:
Gagan Bhullar
2024-06-25 12:30:21 -06:00
committed by GitHub
parent 2782530bcb
commit 0b58071f29
@@ -24,7 +24,7 @@ Remember that you worked with a method in the Role Playing Game that rounds a nu
You should round `darkColorsArr.length * Math.random()` down to the nearest whole number.
```js
assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)\s*\)\s*\)/);
assert.match(getRandomIndex.toString(), /console\.log\(\s*Math\.floor\(\s*(darkColorsArr\.length\s*\*\s*Math\.random\(\s*\)|Math\.random\(\s*\)\s*\*\s*darkColorsArr\.length)\s*\)\s*\)/);
```
# --seed--