Build a Teacher Chatbot - Step 3

Tell us what’s happening:

My code is syntactically correct, but the editor is flagging an error that I can’t see. Please help me.

Your code so far

console.log("Hi there!");

const botName = "teacherBot";

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

Challenge Information:

Build a Teacher Chatbot - Step 3

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-teacher-chatbot/66b59829dba144ff1351220f.md at main · freeCodeCamp/freeCodeCamp · GitHub

Can you explain this a bit more please? Is there a red squiggly line somewhere? If so, where?

The editor keeps saying that I need to have a variable named greeting, which is actually declared in the code.

Your code is working fine for me.

Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

Thanks! , that worked; the problem was with the extensions I’m using.