Learn Introductory JavaScript by Building a Pyramid Generator - Step 9

Tell us what’s happening:

how do I assign the string “Test” to the secondCharacter variable.

Your code so far


// User Editable Region

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

console.log(secondCharacter);
let Test;
Test = "secondCharacter"

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 9

Don’t put a variable in quotes, then it becomes a string

put your string in quotes.

Assign it the same say you assigned 'Hello' to character or “World” to character

1 Like

ok thanks! that really helped

1 Like

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