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
hbar1st:
parenthesis
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?
ILM
December 4, 2024, 7:32pm
5
yes, you need to have padRow inside the parentheses of push
, you also need to call it
please review how to call a function
sylvia1
December 17, 2024, 8:56pm
6
Thank you! I’ve also been stuck for some time and this helped!
1 Like