Learn Introductory JavaScript by Building a Pyramid Generator - Step 8

Tell us what’s happening:

let character = ‘variableOne’;
console.log(character);
character= “letAnothreVariable”
console.log(character);
let secondCharacter = “yetAnotherVariable”
console.log (secondCharacter)
secondCharacter = “thisIsAnAbsurdlyLongName”;
console.log(secondCharacter)
what’s wrong?

Your code so far


// User Editable Region

let character = 'variableOne';
console.log(character);
character= "letAnothreVariable"
console.log(character);
let secondCharacter = "yetAnotherVariable"
console.log (secondCharacter)
secondCharacter = "thisIsAnAbsurdlyLongName";
console.log(secondCharacter)


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 8

Hi and welcome to the forum.
Please click the reset button to restore the code for this step.
After that please add exactly one new line of code to declare the secondCharacter variable as requested. Do not initialize the variable. Just declare it.
Do this only once.