Tell us what’s happening:
const sentence = Today, you will learn about [${topic} variable goes here] in [${subject}variable goes here].
;
console.log(sentence);
????
You should use template literal syntax to assign the string Today, you will learn about [topic variable goes here] in [subject variable goes here]. to the sentence variable. Refer to the example if you need help.
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";
// User Editable Region
const sentence = `Today, you will learn about [${topic} variable goes here] in [${subject}variable goes here].`;
console.log(sentence);
// 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 Edg/137.0.0.0
Challenge Information:
Build a Teacher Chatbot - Step 5