curriculum/challenges/english/blocks/workshop-teacher-chatbot/66b59be6ab830800c4df9146.md
Now, it's time to use the variables you created in the previous step.
In previous lessons, you learned how to work with template literals like this:
const name = "John";
const age = 30;
// My name is John and I am 30 years old.
`My name is ${name} and I am ${age} years old.`;
Start by creating a sentence variable.
Using template literal syntax, assign the string Today, you will learn about [topic variable goes here] in [subject variable goes here]. to the sentence variable.
You will replace the [topic variable goes here] and [subject variable goes here] placeholders with the topic and subject variables and ${} syntax.
Finally, log the sentence variable to the console.
You should have a sentence variable.
assert.isNotNull(sentence);
Your sentence variable should be a string.
assert.isString(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.
assert.match(code, /Today,\s*you\s+will\s+learn\s+about\s+\$\{topic\}\s+in\s+\$\{subject\}\./);
You should log the sentence variable to the console.
assert.match(code,/console\.log\(\s*sentence\s*\);?/);
console.log("Hi there!");
const botName = "teacherBot";
const greeting = `My name is ${botName}.`;
console.log(greeting);
const subject = "JavaScript";
const topic = "strings";
--fcc-editable-region--
--fcc-editable-region--