mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fix(curriculum): allow space before semi colon in for loop (#55825)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
parent
12b2434859
commit
cbfdb013af
@ -32,7 +32,7 @@ assert.match(__helpers.removeJSComments(code), /i\s*<\s*count/);
|
||||
Your `for` loop should use `i < count` as the condition.
|
||||
|
||||
```js
|
||||
assert.match(__helpers.removeJSComments(code), /for\s*\(\s*let\s+i\s*=\s*0;\s*i\s*<\s*count;/);
|
||||
assert.match(__helpers.removeJSComments(code), /for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*count\s*;/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user