Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

hi guys again me sticking in step 11 . I will be glad if i receive your kind help :
Step 11

You are now ready to declare your next variable. Remove both console.log statements, and the character reassignment.

Also remove your secondCharacter variable, but leave the character initialization unchanged.

Your code so far


// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

It would be best to have no console log statements in your code. The character re-assignment should not be there.

If you remove the SecondCharacter declaration, your code won’t pass. But if you remove both the declaration and initialization, your code will pass.

I think the instructions should have been more clear there.

1 Like

tnx a lot bro
got it
that was helpful :clap:

1 Like

This one stumped me too. Not supposed to put the answer but I appreciate when others do. So the code should read:
code removed by moderator

If you know you are not supposed to put the answer, you should not do it.