Build a Greeting Bot - Step 7

Tell us what’s happening:

let botIntroduction = “isiaq”;
console.log(“My name is” + botIntroduction + ". ");
i don’t no what is happen here

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



// 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 Edg/143.0.0.0

Challenge Information:

Build a Greeting Bot - Step 7

Hi

You are along the right lines but you need to read t he instructions carefully.

When it says assign “this” value to the botIntroduction variable, it is referring to the paragraph above in the instructions. You have only put the value on the console which was not asked for. It also refers to the “bot” variable in the instructions, not “botIntroduction”. Have another go, if you are still having trouble reply to this thread with your updated code.

Hello,

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 message it showing up.

Hi

Yes I can see what you have put above and why it is not passing as you haven’t followed the instructions exactly. We can’t just give the answer. We can guide you. Please see my previous post.

Also nowhere in the instructions has it asked you to assign your name as the value to the variable 'botIntroduction". Please reset the step and closely follow the instructions and take it step by step and see my previous post.

If you are having problems please say what you don’t understand, don’t say the error message again.

Thank, I have got it.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.