Build a Greeting Bot - Step 7

Tell us what’s happening:

Step 7 of the greeting bot
Having soome issues with the code

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 = "My name is" + "bot" + "."
console.log(botIntroduction)

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

Welcome to the forum @gituikunganga !

console.log("Hello, my name is " + firstName + ".");

Please compare your code to the example given.

When we concatenate strings and variables, should variables be quoted? Also, check the spacing in your strings.

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