Learn Introductory JavaScript by Building a Pyramid Generator - Step 66

Tell us what’s happening:

I tried to call padRow function to row.push, as you see. it doesn’t work. Did i do something wrong?

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 66

you forgot the parenthesis after the function name to actually call it

1 Like

Omg! I’ve been getting stuck for many hours. I appreciate your assistance.

1 Like

I’ve been stuck on this same issue, and don’t understand putting parenthesis after the function name. Aren’t you supposed to have padRow in the parenthesis?

yes, you need to have padRow inside the parentheses of push, you also need to call it

please review how to call a function

Thank you! I’ve also been stuck for some time and this helped!

1 Like