Build a Greeting Bot - Step 5

Tell us what’s happening:

Please tell me what’s string… i don’t understand JS

Your code so far

console.log("Hi there!");
console.log("I am excited to talk to you.");

let bot;
let botLocation;


// User Editable Region

BOT = "teacherbot"

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0

Challenge Information:

Build a Greeting Bot - Step 5

You don’t have your variable for bot exact - it’s not in capitals (plus you can’t begin a variable name with a capital).

You have not assigned the botLocation variable as instructed.

How to add the bot location?

Do you remember how to assign a declared let variable? You have declared the 2 variables in your first 2 lines of code. You have only assigned 1 in the editable region (bot) (although see errors above). You assign a value to botLocation variable in the same way.

Have a look at this Declaring a Javscript variable and how to assign a value to the variable.