# Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

**URL:** <https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/801894>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 7, 2026, 7:37am UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/801894 "2026-10-07T07:37:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AwonoHarold](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AwonoHarold](https://forum.freecodecamp.org/u/AwonoHarold)\
**Post date:** [October 7, 2026, 7:37am UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/801894/1 "2026-10-07T07:37:53Z")

</div>

### Tell us what’s happening:

Hello, I’m stuck on the Build a JavaScript Trivia Bot lab: tests 10 and 11 keep failing even though codingFact is declared with let and includes favoriteLanguage.  
I have tried the recommended syntax and restarted the code, but the same two tests still fail.  
Could someone please explain what the checker is expecting or help identify why it is not detecting my codingFact declaration?

### Your code so far

```js
console.log("Hello! I'm your coding fun fact guide!");

let botName = "Trivia";

let botLocation = "Newyork";

let favoriteLanguage = "Javascript";

console.log("My name is " + botName + " and I live on " + botLocation + ".");

console.log("My favorite programming language is " + favoriteLanguage + ".");

let codingFact = favoriteLanguage + " was created by Brendan Eich in just 10 days.";

console.log(codingFact);

codingFact = favoriteLanguage + " is used by millions of developers around the world.";

console.log(codingFact);

codingFact = favoriteLanguage + " can be used to create interactive web pages.";

console.log(codingFact);

console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".");

```

### Your browser information:

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

### Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-v9/lab-javascript-trivia-bot/lab-javascript-trivia-bot)**
>
> Learn to Code for Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 7, 2026, 7:38am UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/801894/2 "2026-10-07T07:38:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AwonoHarold](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AwonoHarold](https://forum.freecodecamp.org/u/AwonoHarold)\
**Post date:** [October 7, 2026, 12:09pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/801894/3 "2026-10-07T12:09:05Z")

</div>

Thank you! I finally found the solution and managed to complete the exercise.

I had been trying since this morning, but the issue persisted. I tried using **Ctrl + F5** , clearing the browser cache, disabling all my extensions, and using private/incognito mode. I also tried different browsers. I first downloaded **Microsoft Edge** , but the test still failed. I then downloaded **Firefox** , and the error changed: initially, tests **11 and 12** were failing, while in Firefox, test **10** was the one failing.

I cleared the cache again, used **Ctrl + F5** , and ran the tests once more. This time, everything worked correctly.

**Thank you for your help! I found the solution and successfully completed it.**
