Build a Greeting Bot - Step 4

Tell us what’s happening:

They asking for it :You should assign a string to your bot variabe.
But it doesn’t work.

Your code so far

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

// User Editable Region

let bot = "teacherbot"
bot = teacherbot


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

Challenge Information:

Build a Greeting Bot - Step 4

here you are assigning a string

here you are assigning a variable teacherbot that does not exist, so that is giving an error

reset the step add a new line below let bot;, and assign there a value to bot, You are asked to assign "teacherBot", pay attetion to the capitalization

it doesnt work, what should i write to line 3 and 4?

line 3 is mainly for variable declaration (which as been done for you already) while line 4 is where you initialize. since the other code didnt work for you (dont know how, buh i ran it and it worked).

i suggest u simply reset and try it again.leave line 3 the way it is and only focus on initialization in the line 4