Learn Introductory JavaScript by Building a Pyramid Generator - Step 14

Tell us what’s happening:

On Step 14 of JavaScript Algorithms and Data Structures it says, "Now that you have reviewed declaration and initialization, remove the code you wrote for your review.

Do not remove your character variable."

There was not a character variable in the first place. This was the answer to the previous question, "let profession = “teacher”; let age; console.log(age); console.log(profession);

When I try to write let character; or let character = “Character”; it says the answer is wrong. What to do?

Your code so far


// User Editable Region

let character = "Character";
console.log(character);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 14

This is the starting code for the challenge

let character = "Hello";
let profession = "teacher";
let age;
console.log(age);
console.log(profession);

line 1 has the character variable. Try resetting your lesson

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