Hi, I need help! I don’t identify the mistake.
function padRow(rowNumber, rowCount) {
return " ".repeat(rowCount-rowNumber)+character.repeat(rowNumber) + " ".repeat(rowCount-rowNumber);
}
Hi, I need help! I don’t identify the mistake.
function padRow(rowNumber, rowCount) {
return " ".repeat(rowCount-rowNumber)+character.repeat(rowNumber) + " ".repeat(rowCount-rowNumber);
}
Hi and welcome to the forum.
Please post a link to the step you are trying to pass. You should also share the whole code if possible.
Reset the lesson to how it was. Look at the example code :
" " + “string”
Your string is what you already have after the word “return” (the repeated character string). You add the space to the start and end of your character string.
Please include a link to the step you are on.
In future, it may be easier to post here by clicking the help button.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
When you wrote this, which requirement in the step were you trying to complete? Please quote the specific part of the step that you were trying to work on.
You haven’t answered me?
Which requirement in the step’s instruction were you trying to complete?
– removed solution code
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
Thanks Eddy! I could solved it.
Thanks! I could solved it.