Learn Introductory JavaScript by Building a Pyramid Generato step 51

hi guys, dont understand whats wrong,can u help me?

this is the Condition :
use const to declare a test variable in your padRow function. Initialise it with the value "Testing".

Then, below your function, try to log test to the console. You will see an error because it is not defined outside of the function’s local scope. Remove that console.log to pass the tests and continue.

and this is my code so far :

function padRow(name) {
 const test = "Testing";
 return character + name;
}
console.log(test);

You forgot to remove it to pass.

1 Like