Build a Teacher Chatbot - Step 3

Tell us what’s happening:

I wrote as per the instructions, it still throws this error:
“You should use template literals to concatenate the string My name is with the botName variable followed by a period (.).”

My code:
console.log(“Hi there!”);
const botName = “teacherBot”;
let greeting;
greeting = My name is ${botName}.;
console.log(greeting);

Everything seems right, it even displays correctly in the console. I genuinely have no idea where it’s going wrong. Please help, I’ve been stuck at this for days now…

Your code so far

console.log("Hi there!");

const botName = "teacherBot";

// User Editable Region
let greeting;

greeting = `My name is ${botName}.`;

console.log(greeting);
// 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/150.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 3

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-teacher-chatbot/66b59829dba144ff1351220f.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @sparkgrid,

Try initializing greeting by declaring and assigning it all on the same line.

Happy coding

Thanks for the welcome! You just solved me days worth of headache, I couldn’t thank you enough <3

Please let me know if that managed to solve your problem.