Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

Hi! I tried to do it in many ways but don`t get it to work and don’t really understand … please help and explain if possible tnx !

Your code so far

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

// User Editable Region

secondCharacter = "Test"
let character = "Hello";
character = "World";
let secondCharacter;
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/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

This is correct:

secondCharacter = character;

All of this is not:

secondCharacter = "Test"
let character = "Hello";
character = "World";

Your starting code is:

secondCharacter = "Test"

All you should do is replace "Test" with character

Reset and try it again.

2 Likes

It was so easy omg , and I was trying in a few days :slight_smile: Tnx man !!

2 Likes