Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

can someone help me in my code im a newbie in coding

Your code so far


// User Editable Region

let character = "World";
console.log(character);
let character = "Hello";

let programmer = "Hello";
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/128.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

when you give a value to an already existing variable, don’t use let, it’s a syntax error

your starting code is

let character = 'Hello';
console.log(character);

you need to assign World below these lines. In your code it’s switched around.

Also remove the programmer variable

1 Like