All courses
0/11 steps
Lesson 1 · Variables & messages

Step 1/ 1

A bot's reply is just text your program builds. In JavaScript you store text in a variable with const.

Declare a variable called botName set to any name you like, then console.log a greeting that includes it, starting with the word Hello.

Example
const food = "pizza";
console.log("I love " + food);