Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/#learn-introductory-javascript-by-building-a-pyramid-generator

Step 59

Values returned out of a function are used by calling the function. You can use the function call directly as the value it returns, or capture the returned value in a variable. This way, you can use the value assigned to a locally scoped variable, outside the function it was created in.

Example Code

function getName() {
  const name = "Camper cat";
  return name;
}

console.log(getName()); // "Camper cat"

const capturedReturnValue = getName();
console.log(capturedReturnValue); // "Camper cat"

console.log(name); // reference error

To use your "Testing" value, return it out of the padRow function by updating your return statement to return only the test variable.

my code is:
function padRow(){
const test= “testing”;
return test;
}
padRow();

error msg:
Sorry, your code does not pass. Hang in there.

Your padRow function should return the test variable.

Hi there!

Welcome to the FCC forum. Please post a link to the challenge step.

a string needs to match 100%, yours is different from required

oh shit, got it now…thanx for ur kind attention…r u a mentor on the forum