Tell us what’s happening:
Not even using chatgpt can i pass the test 14.
Your code so far
Hi freeCodeCamp community,
I’m stuck on the JavaScript Trivia Bot lab. Specifically, test 14 refuses to pass, even though everything else works perfectly.
My bot variables are:
const botName = "fCC & bugs";
const botLocation = "Bugland";
const favoriteLanguage = "Sofa&popcorn";
I’ve created a codingFact variable and reassigned it three times, making sure each new value includes the favoriteLanguage variable. For example, my third assignment is:
codingFact = "If you want to know more about " + favoriteLanguage + ", you only have to ask ChatGPT!";
console.log(codingFact);
All other tests pass, but test 14 always fails:
14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
I’ve checked:
- variable names
- casing
- punctuation
- spacing
- inclusion of favoriteLanguage in every codingFact
- Trying other explorer (chrome)
I even searched forums and consulted ChatGPT, but nothing works. The console output seems correct, so I suspect this might be a bug in the test itself.
Has anyone managed to pass this test? Any suggestions or workarounds would be greatly appreciated.
The Code:
// Initial variables
const botName = "fCC & bugs";
const botLocation = "Bugland";
const favoriteLanguage = "Sofa&popcorn";
// First assignment of codingFact
let codingFact = favoriteLanguage + " is the best when shared with friends";
// Initial messages
console.log("Hello! I'm your coding fun fact guide!");
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
console.log("When you program in " + favoriteLanguage + " remember, " + codingFact + ".");
// Second assignment of codingFact
codingFact = "Although, when first deployed " + favoriteLanguage + " in the household, you must always comply, the moments you spend in family using it will make that sofa one more in the house.";
console.log(codingFact);
// Third assignment of codingFact (this is the one that fails in freeCodeCamp)
codingFact = "Repeat with me: " + favoriteLanguage + " is the best!";
console.log(codingFact);
// Final message
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".");
Thanks!
— fCC & bugs from Bugland
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot