Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

I have looked @ all the hints (& answers) in the Forum & I believe has done what it has required to change the variables from Hello to World & everything has worked out fine in the counsel, but it said that I am doing it incorrect it said: You should use “character” twice in your code which I have can someone lend me a hand? Please & Thank you!

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Remove the last console.log


I think the test is counting the occurrence of the character variable. So logging it out again will make that fail,

Hey Thanks! That worked! :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.