Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

Tell us what’s happening:

Hello… I dont get the prob. I write the followin in the step 7 pyramid generator, I tried to see others having trouble bug could not identify the problem. This is the code:

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

But it says that my console.log( ) should come after your reassignment. I dont understand what I am doing wrong. The task is:

now log your character variable to the console again. You should see the sring Hello and World in the console.

Please help? :slight_smile:

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

try resetting the lesson and reentering the requested code, there doesn’t appear to be a problem with your code that I can see.

1 Like

I have tried ctrl + f5 some times, reseting everything :stuck_out_tongue: but still…

make sure you aren’t using any extensions that may interfere with the website (ad blockers, dark mode, etc.)

1 Like

changed to Chrome instead of edge, then all good. :stuck_out_tongue: so wierd…

1 Like

Awesome! Happy coding!