Build a Teacher Chatbot - Step 3

Tell us what’s happening:

I think the code is right but how it is saying wrong. can anyone help me ?

Your code so far


// User Editable Region

let botName="Park";

let greeting=`My name is ${botName}.`;

console.log(greeting);

// 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/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Challenge Information:

Build a Teacher Chatbot - Step 3

Hi. Your 2 lines of code for greeting and the console log for greeting passed for me. You may have changed the seed code so I suggest you reset the step.

Your solution works from my end. 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.

Welcome to the forum @ghalerajesh01234

Here is the message I receive when I input the code you supplied.

You should use template literals to concatenate the string My name is with the botName variable followed by a period (. ).

The console log is missing.
You changed the botName variable declaration from const to let
You also modified the value of the botName variable from teacherBot

Please reset the step to restore the seed code and try again.
Do not modify code you are not asked to modify.

Happy coding

Thankyou for your advise, That really worked.

1 Like