Tell us what’s happening:
For the final step, you will log the bot’s message of “Well, it was nice to talk to you. Have a nice day!” to the console.
And with that, your greeting bot is complete!
Pls I need help on this, I have tried all I could, and I can’t give up
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.");
const botIntroduction = "My name is " + bot + ".";
console.log(botIntroduction);
const botLocationSentence = "I live in " + botLocation + ".";
console.log(botLocationSentence);
bot = "professorBot";
const nicknameIntroduction = "My nickname is " + bot + ".";
console.log(nicknameIntroduction);
bot = "awesomeTeacherBot";
const newNicknameGreeting = "I love my nickname but I wish people would call me " + bot + ".";
console.log(newNicknameGreeting);
const favoriteSubject = "Computer Science";
const favoriteSubjectSentence = "My favorite subject is " + favoriteSubject + ".";
console.log(favoriteSubjectSentence);
let goodbye = "Well, it was nice to talk to you. Have a nice day!;
// User Editable Region
console.log(goodbye);
// 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/150.0.0.0 Safari/537.36 Edg/150.0.0.0
Challenge Information:
Build a Greeting Bot - Step 15