Build a Greeting Bot - Step 9

Tell us what’s happening:

reassigning the teachbot to professorbot to variable bot. What am i doing wrong with this code. It will not reassign

Your code so far

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

let botLocation = "the universe";

console.log("Allow me to introduce myself.");

const botIntroduction = "My name is " + bot + ".";
console.log(botIntroduction);

const botLocationSentence = "I live in " + botLocation + ".";

// User Editable Region

console.log(botLocationSentence);

let bot = "teacherBot";
console.log(bot);

bot = "professorBot";
console.log(bot);

// 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/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a Greeting Bot - Step 9

Hi

I suggest you refresh your learning on the let keyword.

You have already declared the variable, reassigned it once and the instructions require you to re-assign it again.

I suggest you reset the step and try again.

let bot;
bot = "teacherBot";

Only do what is asked. Don’t add additional lines of code not asked for.