Build a Greeting Bot - Step 7

Tell us what’s happening:

I have tried to create the botIntroduction and concatenate it, but each time I do it, it says create the variable

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.");


// User Editable Region

let botIntroduction;
let botInyroduction="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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Hi.

You have a typo here:

 botInyroduction=

There is no need here to do the let variable declaration on one line and the assignment on another line. However if you were assigning a value to t he let variable declarared you don’t use the word “let” again. As you saw you can only do this if you create a different variable name which is not what was asked.

You only need 1 line of code to do the variable and the other for the console log