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
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
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.
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.