Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

Tell us what’s happening:

i need help on how not to reassign the value of character and how not to have a secondcharacter variable

Your code so far


// User Editable Region

let character = 'Hello';

character = "Hello";
let secondCharacter = "Test";
secondCharacter = character;


// 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/133.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

Welcome to the forum @alex26

You should not reassign the value of character.

The above code is reassigning the value for the character variable.
To not reassign the variable you need to remove that line from the editor.

You should not have a secondCharacter variable.

To not have a variable, you need to remove that variable and all reassignments of that variable from the editor.

Happy coding