Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

I am not sure what I did Wrong? I looked at similar questions

Your code so far

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

// User Editable Region

secondCharacter = "character";

// 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/133.0.0.0 Safari/537.36 Edg/133.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Welcome to the forum :wave:

change your secondCharacter assignment from "Test" to your character variable.

You have changed it to the string "character" not the variable character.

Strings have quotes and represent the actual string of characters in the quotes. A variable does not have quotes and the value stored in the variable might change to different things (numbers, strings, etc.)

1 Like