Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

Please Have o look at my code, it doesn’t work. I’ve read everything and tried different variants, but I couldn’t find the solution of the problem. What should I do to improve my code?

Your code so far

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

// User Editable Region


 let character=secondCharacter;
 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/127.0.0.0 Safari/537.36 OPR/113.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

please click the reset button to restore the given code which was:
secondCharacter = "Test";

Then read the instruction again:

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

Which value are they asking you to change?
(and what will it become?)

Try to answer this yourself again because if I just tell you, you’ll be confused in the future again on other exercises.

1 Like

In order to answer your question I should say that they ask to change value ‘character’. I’ve already tried doing this, but unfortunately it doesn’t work either. I don’t know why?

That is not true actually?

If you read the sentence again, what value is the one they said to change FROM and what value is the one to change TO.
(I capitalized the words so I can highlight them as a clue for you)

Thank you, I try to understand.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.