Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

I didn’t add a value to the age var, but it still fails me with I should log age to the console, when it is being logged.

Your code so far

let character = "Hello";

// User Editable Region

let profession = "teacher";
let age;
console.log (profession, 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/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

try console.log in two lines separately.
also remove the space after log in log ()

Thank you. It worked, it was me needing to seperate age from the console log so my code turned out to be

console.log(profession);
console.log(age);

Again thank you

Signed,
Slightplyz.

Happy coding!

2 Likes