curriculum/challenges/english/blocks/workshop-greeting-bot/66ada3f46945763dd97f43f8.md
Earlier, you created the bot and botLocation variables. Now, you will use them to output new messages to the console.
In previous lessons, you learned how to work with string concatenation using the + operator to concatenate strings together like this:
let firstName = "John";
console.log("Hello, my name is " + firstName + ".");
// result: "Hello, my name is John."
Remember that you need to be mindful of spaces when concatenating strings with variables.
Create a variable called botIntroduction.
Then use string concatenation with the + operator to join the string "My name is " followed by the bot variable followed by a period (.).
Assign this value to the botIntroduction variable.
Then, log the botIntroduction variable to the console.
You should have a variable called botIntroduction.
assert.isNotNull(botIntroduction);
Your botIntroduction variable should hold the value of a string.
assert.isString(botIntroduction);
You should use string concatenation with the + operator to join the string "My name is " with the bot variable followed by a period (.). Be mindful of spaces. Assign this concatenated string to the botIntroduction variable.
assert.equal(botIntroduction, "My name is teacherBot.");
You should have a fourth console.log() statement in your code.
assert.lengthOf(__helpers.removeJSComments(code).match(/console\.log(.*)/g), 4);
Your console statement should output the botIntroduction variable.
assert.match(__helpers.removeJSComments(code), /console\.log\s*\(\s*botIntroduction\s*\);?/);
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.");
--fcc-editable-region--
--fcc-editable-region--