Build a Greeting Bot - Step 7

Tell us what’s happening:

You should use string concatenation with the + operator to join the string "My name is " with the bot variable followed by a period (.). Be mindful of spaces. Assign this concatenated string to the botIntroduction variable. This is the error i get.

This is my code.

bot = " Alexy";
let botIntroduction="My name is "+ bot + “.” ;
console.log(botIntroduction);

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

bot = " Alexy";
let botIntroduction="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/144.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

where you asked to give a new value to bot?