Build a Greeting Bot - Step 7

Tell us what’s happening:

I can’t seem to get past this phase and I don’t know how to go about it

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 botIntroduction = "Paul";
console.log("My name is " + 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/136.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Hi there, welcome to the community! :blush:

Regarding the lesson instructions:

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’re currently doing the concatenation directly in the console.log() statement, which doesn’t follow the instruction exactly. Instead, you should build the full sentence first, store it in the botIntroduction variable, and then log that variable. Hope that clears it up! Let me know if you need help.

1 Like

Thank you
I’ve gotten it

1 Like