Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

Tell us what’s happening:

i don’t understand how i must assign the second character eg
let secondCharacter=“world”;
where is my mistake there??
i’m bit confused

Your code so far


// User Editable Region

let character = 'Hello';
console.log(character);
character = "World";
console.log(character);
let secondCharacter='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/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

Welcome to the forum @mthizodezulu258

You should not assign a value to your secondCharacter variable. Do not forget your semi-colon.

For this step you only need to declare the variable.

Happy coding