Build a Teacher Chatbot - Step 5

Tell us what’s happening:

“const sentence” keep giving me error message: your code does not pass. please help me.

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 topic = "strings";
const subject = "JavaScript";
// this line should be correct???:
const sentence = `Today, you will learn about ${topic} in ${subject}.`;
console.log(sentence);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 5

remember that you can’t declare a variable twice. You are creating three new variables, are you sure that’s what you should be doing?

1 Like

ups …you are right, thanks for pointing my mistake. trimakasih