Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

Tell us what’s happening:

how can l remove the console.log and also remove the 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);

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 11

l have figured it out thanks.

1 Like