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