Back to Freecodecamp

Step 11

curriculum/challenges/english/blocks/workshop-greeting-bot/66adc5919c1853448f119d11.md

latest880 B
Original Source

--description--

Now it looks like the bot wants to change their nickname.

Using reassignment, assign the string "awesomeTeacherBot" to the bot variable.

--hints--

You should assign the string "awesomeTeacherBot" to the bot variable.

js
assert.strictEqual(bot, "awesomeTeacherBot");

--seed--

--seed-contents--

js
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);

--fcc-editable-region--

--fcc-editable-region--