Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

Hi Guys, first time trying to learn javascript I keep getting the error that I need to use character twice which I believe I have

here is my code:

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

what am I doing wrong here, thanks in advance.

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Remove the second console.log