Build a Greeting Bot - Step 10

Tell us what’s happening:

I am trying to use string.concat() but here “My name is” is string and bot is variable. how can I solve this step? What method should I use concat or +.

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

const botIntroduction = "My name is " + bot + ".";
console.log(botIntroduction);

const botLocationSentence = "I live in " + botLocation + ".";
console.log(botLocationSentence);

bot = "professorBot";


// User Editable Region

let nicknameIntroduction;
nicknameIntroduction=("My name is ").concat(" ",bot);
console.log(nicknameIntroduction);

// 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/134.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 10

you are missing a piece to complete the string (hint: punctuation)

you can use both methods to concatenate