Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

The request is “Try printing count + 1 to the console.” Below is my console log:
console.log (count + 1);

Still getting error…Whuuu???

Your code so far


// User Editable Region

let character = 'Hello';
let count = 8;
console.log (count + 1);

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

1 Like

Although it’s working, but the tests don’t need you to use that space between
console.log and (count + 1).

It’s considered best practice to omit that space, as it can make your code harder to read by others.

Sneaky space! Thanks for the quick response :grinning: