Learn Introductory JavaScript by Building a Pyramid Generator - Step 57

Tell us what’s happening:

I have written the code below but still not passing

const character = "Engineer: ";
function padRow(name) {
return character + name;
}
padRow(“Johnmary”)

Don’t know why the code is wrong and not passing in freeCodeCamp practice but passing in my localhost. If you can help me, I will ensure we become friends for long… Lols.

Your padRow function should concatenate character to the beginning of name .

This is what I keep getting. what exactly does this beginning mean…https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-57

Please include a link the challenge and a copy of all the code whenever you ask for help here.

1 Like

Welcome to the forum @reacttraining1311

Update your padRow function to return the value of concatenating your character variable to the beginning of the name parameter.

For this step, do not change the values of any of the variables.

Happy coding

1 Like