Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

Tell us what’s happening:

Can’t figure out what I’m doing wrong here. Keep getting the hint “you should log age to the console”, and if I take away the () around them, I get another hint, saying "you should add the string “teacher” to profession. I have also tried to add semicolons after wach row, and nothing helps.

Your code so far

let character = "Hello";

// User Editable Region

let profession = "teacher";
let age;
console.log (profession)
console.log (age)

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 12

Hi there! Why did you place a spaces here?

just a bad habit, new to coding and forgetting spaces mess me up! deleting them fixed it! Thanks!

1 Like

TYSFM THIS SAVED Mì, I WAS STUCK ON THIS SH*T FOR DAYSS TYSFM