Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

Sorry, your code does not pass. You’re getting there.

You should assign the value of the character variable to your secondCharacter variable. Don’t forget your semicolon.

Your code so far

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

// User Editable Region

secondCharacter = "World";

// User Editable Region

console.log(secondCharacter);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Hi there and welcome back to the forum!
Why did you assign “World”?

i try character and its not still passing i dont know why

Show us this attempt, please

Photos/screenshots of an error can be helpful, but it also helps to provide the complete code. Posting the code helps us help you better!

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

you are assigning the string "character", that is not a variable