Build a Greeting Bot - Step 7

Tell us what’s happening:

Remember that you need to be mindful of spaces when concatenating strings with variables.

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.

already put the same answer on the forum but still incorrect help me please

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0

Challenge Information:

Build a Greeting Bot - Step 7

it does not look like you did this,

your botIntroduction variable has only value "bot", not the sentence you are asked to write

Try to understand well the instructions and use this in case you don’t get it, Happy coding!

[mod edit - solution removed]

Hi. I have edited your post to remove the solution. We guide users on the forum to w ork out the answer for themselves.

2 Likes

You are being asked to use string concatenation with a variable you already declared and assign it to botIntroduction, then logging botIntroduction to the console.