Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

console says to log age and profession to the console. I have done this. I have also done
let profession = “teacher” ; but it still does not work

Your code so far

let character = "Hello";

// User Editable Region

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


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/27.0 Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Hi there!

Add the string teacher to the profession variable on declaration. Don’t assign it separately.

I have done this and it still does not work:
let profession = “teacher”;
The hint says: You should log age to the console.

Ah, I forget about that. that’s the issue. Your console.log() is broken.

1 Like