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