Build a Greeting Bot - Step 7

Tell us what’s happening:

I don’t know how to use the string concat. method. it doesn’t give me a descriptive enough tutorial on how to use it.

Your code so far

console.log("Hi there!");
console.log("I am excited to talk to you.");

let bot;
let botLocation;

bot = "teacherBot";
botLocation = "the universe";

console.log("Allow me to introduce myself.");


// User Editable Region

let botIntroduction = "My name is "

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7

The instructions do not ask you to use .concat().

Then use string concatenation with the + operator to join the string "My name is " followed by the bot variable followed by a period (.).

This example is given:

let firstName = "John";

// result: "Hello, my name is John."
"Hello, my name is " + firstName + ".";