Build a Greeting Bot - Step 7

Tell us what’s happening:

please, help me to solve this.

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.

my answer:

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

Your code so far


// User Editable Region

let bot="pamoda";
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/143.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Please say more about how you are stuck so we can help you better.

What happened to the rest of the code that was there originally?

What messages are you seeing when you check your code?

Welcome to the forum @pamodawanasinghe

Didn’t you declare the bot variable in a previous step?

Happy coding