Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

i dont understand what im doing wrong the hint says you should use the assignment operator to reassign character

Your code so far


// User Editable Region

let character = 'Hello';
console.log(character";
let programmer='character';
programmer = "world";

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

You have a quote that is making everything a string. In addition there is no closing parentheses ). Every time you open a parenthesis ( , you have to close it.

Following that , you need to reassign the character variable. You have defined a variable called programmer and changed its value.

based on the last reply i changed to this still no luck

let character = 'Hello';
console.log(character';
let character='hello';
character = 'world';

Hi @ryanstruckus

I see where you got World from in the previous step.

Please remove the line indicated below.

For line 2 of the code, change the quote mark into a closing parentheses, to match the opening one.

When you have done the above two fixups, the next hint message is all about capitalisation.