Learn Introductory JavaScript by Building a Pyramid Generator - Step 62

function padRow(rowNumber, rowCount) {
return " " + character.repeat(rowNumber) + " ";
}

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Welcome to the forum @Anupam9142

You do not appear to have modified the seed code.

You should call .repeat() on your " " strings to repeat them rowCount - rowNumber times.

Happy coding