Learn Introductory JavaScript by Building a Pyramid Generator - Step 16

Tell us what’s happening:

So I don’t really know what’s wrong with my solution
so the instructions said
“With the number data type, you can perform mathematical operations, like addition. Try printing count + 1 to the console.”

And my solution is
let character = ‘Hello’;
let count = 8;
console.log (count + 1);

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 16

Welcome to the forum @yna-nyan

Please remove the white space between .log and (

Happy coding

1 Like

YEY! it worked thank you!

1 Like