Tell us what’s happening:
it says Your padRow function should return the result of character + name. but I already concatenate the character and name
Your code so far
// User Editable Region
const character = "Doctor ";
function padRow(name) {
return character + name;
}
padRow("Camper");
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 57
Hi there!
Why you added the above line? Always only follow the specific instructions for the challenge step. Other part of the instructions is for understanding the code logic, you didn’t need to apply it on the challenge editor.
Instructions:
Update your padRow function to return the value of concatenating your character
variable to the beginning of the name
parameter.
1 Like
I tried in other web but its correct
Because the challenge test case is specific about the instructions. If you do not code as per instructions, the challenge test will not let you pass.
Did you tried your code in same FCC challenge editor on other browser or you tried it on any other code editor.?
1 Like
reading this helped me thank you, I was about to post asking questions.!! i was stuck on this for 2 days
1 Like