Learn Introductory JavaScript by Building a Pyramid Generator - Step 7

Tell us what’s happening:

I am trying to code it but unfortunately I can’t just can’t do it

Your code so far


// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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

I couldn’t understand exactly what you want to know about this exercise, but I can tell you something…

Everytime you try to see something on the console/screen, you have to write like this:

console.log();

Inside parentheses, you have to write the variable (or the string) which you would like to see on the screen/console.

Sorry if I made any mistakes, English isn’t my first language.

1 Like

Hello @aaravplayzminecraft !

As @camilacamila has explained to us, we need to not use the = sign for using the console.log(). The previous post has provided good guidance.

You could use the following as reference for how to use the console.log().

It would be the same method.

1 Like