Tell us what’s happening:
please help me to crack this Now it is time to get the length of the topic string.
You can use template literals inside console statements like this:
Example Code
const developer = “Jessica”;
console.log(Hello, my name is ${developer}.
);
Start by outputting the message Here is an example of using the length property on the word [topic]. to the console.
Remember to replace [topic] with the topic variable, and use proper template literal syntax as you did in the previous steps.
Then, add a s
Your code so far
// User Editable Region
let topic = "length";
console.log(`Here is an example of using the length property on the word ${topic}.`);
console.log(`The length of the word "${length}" is ${topic.length}.`);
// 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/133.0.0.0 Safari/537.36 Edg/133.0.0.0
Challenge Information:
Build a Teacher Chatbot - Step 8