Build a Greeting Bot - Step 7

Tell us what’s happening:

I don’t understand why my code has errors. I think i did everything right but i didn’t

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

let 
let 

// User Editable Region

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/138.0.0.0 Safari/537.36 OPR/122.0.0.0

Challenge Information:

Build a Greeting Bot - Step 7

Hi @miltonwheeldonasing6 and welcome to our community!

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

This is not the correct syntax for a console.log() statement. Compare it with others above.

Also, you have some stray code above these two lines.

these are syntax errors

You have 2 lines of unnecessary code above. That is not the correct syntax for calling console.log(). Remember to insert spaces in your concatenation. Keep trying. :slight_smile:

Hey there, along with the other suggestions given by the community, remember that you need to be mindful of spaces when concatenating strings with variables. :slight_smile: