mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-23 21:04:36 -05:00
892 B
892 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 660f1bf673487ae0bb25b900 | Step 37 | 1 | step-37 |
--description--
Your loop should now run eight times. Inside the body of the loop, print the value of the i iterator and see what happens.
--hints--
You should use console.log().
assert.match(__helpers.removeJSComments(code), /console\.log/)
You should log the value of i.
assert.match(__helpers.removeJSComments(code), /console\.log\(\s*i\s*\)/);
You should log the value of i in your for loop.
assert.match(__helpers.removeJSComments(code), /for\s*\(\s*let\s+i\s*=\s*0;\s*i\s*<\s*count;\s*i\s*=\s*i\s*\+\s*1\s*\)\s*\{\s*console\.log\(\s*i\s*\);?\s*\}/);
--seed--
--seed-contents--
const character = "#";
const count = 8;
const rows = [];
--fcc-editable-region--
for (let i = 0; i < count; i = i + 1) {
}
--fcc-editable-region--