Build a Greeting Bot - Step 7

Tell us what’s happening:

let bot = “teacherBot”;

let botIntroduction = "My name is " + bot + “.”;

console.log(botIntroduction);

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0

Challenge Information:

Build a Greeting Bot - Step 7

Welcome to the forum @ptembhare746

Did you notice the syntax error in the console?

JavaScript allows you to declare a variable using the let keyword only once.
Please reset the step to restore the seed code.

Carefully read the instructions regarding the new variable you are asked to declare.

Happy coding