Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

i am not able to understand this step . can you please help me out

Your code so far


// User Editable Region

let character = 'Hello';
console.log(character);
let character = "world";
let programmer = "Hello";
programmer = "hii divya";

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Welcome to the forum @krish02

The let keyword can only be used once to declare a variable.

To reassign a variable declared with let just remove the let keyword from the above code.

The instructions did not ask you to include the following code, so you can safely remove it.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding