Learn html coding level nine

Tell us what’s happening:

My brain is just not braining

Your code so far


// User Editable Region

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

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

You only miss the last line

// this
console.log(character);
// not this
console.log = "World";

its still not working. Now log your character variable to the console again. You should see the string "Hello" , then the string "World" , in the console. its asking for this answer

As I wrote above, change the last line

log is a method for the console object this statement (console.log = “World”) is logically wrong

console.log should use brackets (), console.log(variable);

so your code should be like this

removed

Hi, welcome to the forum. Please don’t post solution code, thank you!

Instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes

OK, thanks for the suggestions and advice

1 Like