Learn Introductory JavaScript by Building a Pyramid Generator - Step 10

Tell us what’s happening:

So not much instructions on how to complete from error. I dont understand this do i change test or not. I dont know what to do I am completely confused

Your code so far

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

// User Editable Region

 secondCharacter = "character";
 console.log(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/125.0.0.0 Safari/537.36 Edg/125.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 10

Welcome back to the forum @craigmstevens1983

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

Here you are assigning secondCharacter to a string, not a variable.
The console.log is printing the variable to the console.

Happy coding

1 Like

ha ha thunder force remove the string sweet got it thank you

1 Like