Learn Introductory JavaScript by Building a Pyramid Generator - Step 10

Tell us what’s happening:

Hello, I know it has been already asked many times but I really don’t get it. Maybe due to the language barrier (i’m a native French speaker) but it keep getting frustrating to don’t understand what I’m suppose to do. I just want to understand this please. I don’t want to get the soluce easily but I need to see the right path. Thank you

Your code so far

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

// User Editable Region

secondCharacter = "Test";

// 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 10

1 Like

Welcome to the forum @dTM04

You should not assign the value "Test" to your secondCharacter variable.

Carefully read the second to last line in the instructions.

Happy coding

Am I still doing it wrong ?

secondCharacter = "character"; 

Sorry if I may seem very dumb

You ain’t dumb, anyone can get stuck. You are almost there, you need to change one thing for your code to pass.
Having the character in quotation marks will result to it being treated as a string, you don’t want that, you want to use it as a variable.

Thank you :slight_smile: I was blind for this one

1 Like

You are very welcome.

1 Like

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