Learn Introductory JavaScript by Building a Pyramid Generator Step 59

I’m supposed to call padRow function in push() call and I’m doing the same.

for (let i = 0; i < count; i = i + 1) {
  rows.push(padRow(i, rows.length))
}

Still I’m getting this error :

running tests You should call padRow in your .push() call.
// tests completed
// console output

## 
### 
#### 
##### 
###### 
#######

Link to step: Step 59
Please help!

please share the link to the step

1 Like

Added in post just now.

You start with

rows.push(character.repeat(i + 1))

In the new code you should only call padRow, with no arguments, the call is going to be built in the next steps

1 Like

That resolved it! Thanks! It’d be better if it was explicitly mentioned to try without arguments. Saw few other people getting stuck because of this same issue.

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

1 Like