Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

Step 6
When a variable is declared with the let keyword, you can reassign (or change the value of) that variable later on. In this example, the value of programmer is changed from “Naomi” to “CamperChan”.

Example Code
let programmer = “Naomi”;
programmer = “CamperChan”;
Note that when reassigning a variable, you do not use the let keyword again.

After your console.log, assign the value “World” to your character variable.

i want to understand this step please?

Your code so far


// User Editable Region

let character = 'Hello';
console.log(character);
character = 'Hello';
character = 'world';


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

What doubts do you have?

it seems you have reassigned the variable correctly

but you need to use the exact value as given, consider also upper case and lower case letter

type or paste code here
let character = “World”;
console.log(“character”);
let programmer = ‘Zenit’;
programmer=“World”;
character = “World”;

if you have a question please use the HELP button to create your own topic

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.