Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Tell us what’s happening:

Please help me. I am on Javascript Algorithms and Data Structures 13/118 and this is my code so far:

let proffesion = “teacher”
let age
console.log(proffesion)
console.log(age)

I can’t figure out what’s wrong.

Your code so far

let character = "Hello";

// User Editable Region

let proffesion = "teacher"
let age
console.log(proffesion)
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/137.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 13

Welcome to the forum @MikeDrinksTea

You should declare a profession variable.

You have some typos.

Happy coding

1 Like

What are the typos in my code? Also i thought let proffesion = “teacher” was declaring the variable, what did i do wrong?

that is correct syntax to declare a variable, yes, but you are declaring the wrong variable. Double check the variable name you are asked to use against the one you are using

1 Like

Thank you, I realized I just misspelt profession.