Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

i am confused as to what i am doing wrong here.please help me

Your code so far

let character = "Hello";

// User Editable Region

let profession = "teacher";
let age =;

// 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/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

let character = "Hello";

// User Editable Region

let profession = "teacher";
let age =;

let age =; that is not correct Syntex for declaring a variable.
Edit: also you need to log both variable to the console.

Remember, = is an assignment operator. If you are just declaring a variable but not assigning it a value you do not use the assignment operator.

let declaredButNotAssigned;
let declaredAndAssigned = "some value";

Review step 2 again

1 Like

Thank you, but the error was saying - it was wrong at the “profession” line xD
But thank you I fixed it with your answer.

Hi there and welcome to the FCC forum. Posting solution code is not allowed here on the forum.

I apologize for the mistake. I will take it down immediately. Thank you for telling me.

1 Like