Build a Greeting Bot - Step 7

Tell us what’s happening:

I am 99% sure this is correct but for some reason code is still failing?

Your code so far

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

let bot;
let botLocation;

bot = "teacherBot";
botLocation = "the universe";

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


// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Were you asked to add this?

let bot = "teacherBot";

hello and welcome to fcc forum :slight_smile:

  • you are redefining “bot”, its already been created and assigned a value, simply use that

solution removed by moderator

you already have the variable declaration, declaring it twice is a syntax error