JavaScript Certification – Build a Greeting Bot (Step 3 test not passing)

Hello everyone,

I am currently working on the JavaScript Certification, specifically the Variables and Strings section, in the Build a Greeting Bot workshop.

I am stuck on Step 3. The instruction asks me to declare a variable named bot using the let keyword.

My code is:

console.log("Hi there!");
console.log("I am excited to talk to you.");

let bot;

However, the test keeps displaying:

“You should use the let keyword to declare the variable.”

I have also tried let bot = "Hello";, rewritten the code, and refreshed the page, but the issue persists.

Steps 1 and 2 are passing successfully, but Step 3 remains incomplete.

Could someone please help me identify why the test is not recognizing this valid variable declaration?

I have attached screenshots of my code editor, instructions, and test results.

Thank you!

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.

Hello,

Thank you for your help and for taking the time to investigate the issue.

I found the problem! My browser zoom level was not set to 100%. After changing it to 100%, the challenge worked correctly.

I really appreciate your guidance and support.

Best regards,
Anshika Pathak