mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-21 19:15:59 -05:00
851 B
851 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 6610c1d97b1671140f95cfbb | Step 50 | 1 | step-50 |
--description--
Now add a log statement to print the value of your call variable.
--hints--
You should add a console.log call.
assert.lengthOf(__helpers.removeJSComments(code).match(/console\.log/g), 2)
You should log your call variable. Don't forget the semi-colon.
assert.match(__helpers.removeJSComments(code), /console\.log\(\s*call\s*\);/);
--seed--
--seed-contents--
const character = "#";
const count = 8;
const rows = [];
--fcc-editable-region--
function padRow() {
}
const call = padRow();
--fcc-editable-region--
for (let i = 0; i < count; i = i + 1) {
rows.push(character.repeat(i + 1))
}
let result = ""
for (const row of rows) {
result = result + "\n" + row;
}
console.log(result);