Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Tell us what’s happening:

the console keeps showing me this;
// running tests

  1. You should use character twice in your code.
    // tests completed
    // console output
    Hello
    World.

and it has refused to submit, please what may be the case?
this is my code;
let character = “Hello”;
console.log(character);

character = “World”;
console.log(character);.

Your code so far


// User Editable Region

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

character = "World"
console.log(character)


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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 6

Welcome to the forum!

In this step you just have to assign, you don’t need to log the result.

thank you, it worked.