Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

Can freeCodeCamp help me
how do you “assign” the string

Your code so far

let character = "Hello";

// User Editable Region

 let profession = "teacher";
 let console.log(profession);

// 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/130.0.0.0 Safari/537.36 Edg/130.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

You should not use let keyword in this line.

And also you should declare an age variable with let keyword but do not give it a value now. Like:

let variableName;

it does not work 

You already have this line. After this you need to follow the challenge instructions.
It wants you to create an age variable, like let age; It says do not give it a value yet, so we didn’t give a value now.

Then you need to use console.log() for both of your new variables to print them out in the console. Do not use let keyword before console.log(), it is wrong. Write console.log(profession) and do the same also for age.

I hope this helps now

You might need to add the following line as per instruction.

Mod Edit SOLUTION REMOVED

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.