Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

Tell us what’s happening:

Step 12
You are now ready to declare your next variable. Remove both console.log statements, and the character reassignment.

Also remove your secondCharacter variable, but leave the character initialization unchanged.

let character = ‘Hello’;
character = “World”;
let character;
Check Your Code (Ctrl + Enter)
Sorry, your code does not pass. Hang in there.

You should not reassign the value of character.

Reset

Help

Your code so far


// User Editable Region

let character = 'Hello';
character = "World";
let 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/130.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

you can’t have let character twice in your code, it is a syntax error

you are asked to remove more, you may want to read again the instructions and remove all you are asked to remove