JavaScript by Building a Pyramid Generator step 62

Hi, I’ve been looking for answers in other topcis but I still can’t find the solution. This is what I think the exercise is asking for. I will appreciate som help. Thanks.

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

Hey there!
Post your code and link to the challenge step. Add three (```) back ticks before and after your code in a separate line.

You need hyphen - between rowCount - rowNumber instead of a comma. And separate the character from repeat by concatenation and add an empty " " string with second.repeat()

1 Like