Build a Greeting Bot - Step 7

Tell us what’s happening:

It keeps saying that botIntroduction is not declared
What am I doing wrong

Your code so far

// User Editable Region
console.log("Hi there!"); 

console.log("I am excited to talk to you.");
 let bot;
 let botLocation;
 let botIntroduction;

 let bot = "teacherBot";

botLocation = "the universe"; 
console.log("Allow me to introduce myself.");



botIntroduction = "My name is" + bot + ".";

console.log(botIntroduction);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 16_7_16 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.7 Mobile/15E148 Safari/604.1 OPT/6.6.2

Challenge Information:

Build a Greeting Bot - Step 7

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @valchuminodevop,

I’m seeing this syntax error in the console:

SyntaxError: unknown: Identifier 'bot' has already been declared. (9:5)

   7 |  let botIntroduction;
   8 |
>  9 |  let bot = "teacherBot";
     |      ^
  10 |
  11 | botLocation = "the universe"; 
  12 | console.log("Allow me to introduce myself.");

I suggest you reset this step and try again, being careful not to change the starting code, which will cause the tests to fail.

Happy coding