Build a Teacher Chatbot - Step 8

Tell us what’s happening:

I have been stuck for a while. I do not get what it is I am supposed to do.

Your code so far

console.log("Hi there!");

const botName = "teacherBot";

const greeting = `My name is ${botName}.`;
console.log(greeting);

const subject = "JavaScript";
const topic = "strings";

const sentence = `Today, you will learn about ${topic} in ${subject}.`;
console.log(sentence);

const strLengthIntro = `Here is an example of using the length property on the word ${subject}.`;
console.log(strLengthIntro);
console.log(subject.length);

// User Editable Region


console.log(`Here is an example of using the length property on the word ${topic}.`);

console.log(topic.lenght);




// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 8

i feel like there was a bug in freecodecamp because I googled the answer and it was the same and when I copy pasted the same console.log(topic.lenght); from google it went through. What a long long hour figuring this one out.

you need to write length, if you write lenght that fails

see this line you wrote in a previous step

see this line below you had for this step: