Build a Teacher Chatbot - Step 3

Tell us what’s happening:

i am struglling to build a teacherchatBot at step 5, how to Start by creating a variable called greeting.
how to use template literal syntax to assign a string that says 'My name is, followed by the ‘botName’ variable, and ending with a period (.). and to Finally, log the greeting variable to the console

Your code so far

console.log("Hi there!");

const botName = "teacherBot";


// User Editable Region

   const greeting ='My name is, botNmae.'

// 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/136.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 3

What is it you don’t understand about the given example?

In the previous lecture videos, you learned how to concatenate strings using template literals like this:

Example Code

const name = "John";

// "Hello, John!"
`Hello, ${name}!`;

Tell us what’s happening:

[quote=“sinoyamuemli, post:1, topic:748518”]
i am struglling to build a teacherchatBot at step 5, how to Start by creating a variable called greeting.
how to use template literal syntax to assign a string that says 'My name is, followed by the ‘botName’ variable, and ending with a period (.). and to Finally, log the greeting variable to the console
help me check step 6,7 as well

Your code so far

console.log("Hi there!");

const botName = "teacherBot";


// User Editable Region

   const greeting = 'My name is, botNmae.'

// 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/136.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 3

Please talk about how the instructions have you stuck instead of copying them out. Thanks

Welcome to the forum @sinoyamuemli

For this step you need to use template literal syntax.
You can use the example code as a guide to structure the code.

Happy coding