Build a Teacher Chatbot - Step 6

Tell us what’s happening:

// running tests

  1. You should have a variable called strLengthIntro.
  2. Your strLengthIntro variable should be a string.
    // tests completed

Your code so far

console.log("Hi there!");

const botName = "teacherBot";

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

const subject = "JavaScript";
const topic = "strings";

const sentence = `Today, you will learn about ${topic} in ${subject}.`;
console.log(sentence);


// User Editable Region

 let subject="computerScience";
 let strLengthIntro;
 strLengthIntro=`Here is an example of using the length property on the word ${subject}.`;
console.log(strLengthIntro);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 6

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like

What exactly is the issue? Explaining the issue could help you resolve the difficult you’re experiencing in step 6.