Build a Greeting Bot - Step 7

Tell us what’s happening:

My code is not running, I was instructed to add botIntroduction and

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 = "bot";
console.log("My name is " + botIntroduction + ".");

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Hi you should use the bot variable, not “bot” string from different var :slight_smile:

Create a variable called botIntroduction.

Then use string concatenation with the + operator to join the string "My name is " followed by the bot variable followed by a period (.).

Assign this value to the botIntroduction variable.

Then, log the botIntroduction variable to the console.

You need to assign the “My name is…” string to the botIntroduction variable, then log the botIntroduction variable.

It might be easier to just reset this step and try again.