Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

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

I’ve used “world” and “Hello” which are the values of the first character, same error mssg, Ive also tried secondCharacter = “character”

Your code so far

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

// User Editable Region

secondCharacter = "World";
console.log(secondCharacter);

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Hi there. The goal for this challenge is to assign one variable directly to another variable. Let’s say you have a variable called first set equal to “One” and a variable called second set equal to “Two”.

Our goal is to assign the variable of first to second. Rather than assigning the value of first to “Two” , we directly assign it to second. This way it’ll always be equal to the last known value of second rather than some arbitrary string.

1 Like

yeah, found the error, and passed it. Thank you.