Learn Introductory JavaScript by Building a Pyramid Generator - Step 10

Tell us what’s happening:

I dont know what to do if this code only have 6 lines … how i can do to pass this test ?
So i have to add one more line ?

Your code so far

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

// User Editable Region

secondCharacter = "Test";

// 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/ Safari/537.36 Edg/

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 10

Instructions for this step:
To see this in action, change your secondCharacter assignment from "Test" to your character variable.
Remember,You don’t need add a new line.

I am actually stuck here as well. I changed it to “World” also after as well as “character”, and it still doesn’t work. I can’t find any information other than this thread. I’ve been stuck on it for an hour. I messed around with other lines after that, still nothing. Can’t seem to find an explanation on Google.
Not sure what I am doing wrong.

Welcome to the FCC forum . character is a variable, not a "String". You didn’t need quotation marks around a variable name. Quotation marks is used only for a string property of JavaScript.

1 Like

Oh, I see! I finally got it thanks to your response. Thank you! Very much appreciated!

Your most welcome. Keep it up, Happy coding.

hi @kodezz

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like