Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

Tell us what’s happening:

The goal is to have the console print out strings “Hello” then “World”.
When I run this code

let Character = “Hello”;
console.log(Character);
Character = ‘World’;
console.log(Character);

It Comes back with error.

Your code so far


// User Editable Region

let Character = "Hello";
console.log(Character);
Character = 'World';
console.log(Character);




// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

1 Like

hi there,

don’t change the existing code. Just add code. (you changed the variable character to Character)
Click reset and try this one again.