Back to Freecodecamp

Step 4

curriculum/challenges/english/blocks/workshop-teacher-chatbot/66b59b12a745e10011158f7b.md

latest1.1 KB
Original Source

--description--

The next step is to create a few more variables that will be used in future bot messages.

Create a variable called subject and assign it the string value "JavaScript".

Then create a variable called topic and assign it the string value "strings".

--hints--

You should have a variable called subject.

js
assert.isNotNull(subject);

You should assign a string to your subject variable.

js
assert.isString(subject);

You should assign the string "JavaScript" to your subject variable.

js
assert.equal(subject, "JavaScript");

You should have a variable called topic.

js
assert.isNotNull(topic);

You should assign a string to your topic variable.

js
assert.isString(topic);

You should assign the string "strings" to your topic variable.

js
assert.equal(topic, "strings");

--seed--

--seed-contents--

js
console.log("Hi there!");

const botName = "teacherBot";

const greeting = `My name is ${botName}.`;
console.log(greeting);

--fcc-editable-region--

--fcc-editable-region--