JavaScript Algorithms and Data Structures: Step 69

I need help with step 69

I have tried many different ways but I still can’t understand how to complete this step. I will add the link to my code below and please can anyone give me hints on how to complete/understand the code.

it asks me this: Update your blank space strings to be repeated rowCount - rowNumber times.

Open up the console to see the result.

and this is my code:

type or paste code here:

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

This was the original before anything added in :
function padRow(rowNumber, rowCount) {
return " " + character.repeat(rowNumber) + " ";

For next time please use the HELP button

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

this is not valid code, you can’t have an expression to the left of the assignment operator

what do you need to do in this step? can you explain in your own words?

Well basically its asking me to add the code to make the character value which is “#”
look like more of a pyramid rather than a right angle triangle.

using which characters do you need to do this?

this is the link to the step, it is important you include it when you ask for help:

yeah thank you. Im kinda new to this forum. so I don’t really know how to properly operate it unfortunately

can you answer this question?

a hashtag.

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

not exactly, the pyramid is already made of hashtags, but you need to change, like you said to make it “look like more of a pyramid rather than a right angle triangle”, like you said.

It’s the spaces you need to update in this step

ahhh. okay I understand what you mean.

and you need to do it in a similar way you did for character, only the string is the space, and the number is rowCount - rowNumber

1 Like