Build a Greeting Bot - Step 7

Tell us what’s happening:


let botIntroduction = "hello my name is " + bot + ".";
console.log(botIntroduction); // i write this code but not work why? freecode gave error bottom sie

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

let botIntroduction = "hello 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/147.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Welcome to the forum @pradeeparya995846!

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Happy coding!