Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

No matter what I do, I cannot pass this lesson. It seems that requirements 8, 10, & 11 have certain requirements that are not made known.

Your code so far

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

let botName;
let botLocation;
let favoriteLanguage;

botName = "Carl";
botLocation = "Mars";
favoriteLanguage = "JavaScript";

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

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

let codingFact;
codingFact = favoriteLanguage + " is not actually about coffee handwriting";
console.log(codingFact);

codingFact = favoriteLanguage + " was created by Brendan Eich in just 10 days";
console.log(codingFact);

codingFact = favoriteLanguage + " is used worldwide by thousands of developers";
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Please have a look at this discussion and see if it helps.
https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/729193

I did see that after I posted this help thread. However even after applying the workarounds in similar forums for this issue, Task #8 will still not pass with the suggested workarounds of the bug. See attached photo for reference. I have OCD so the sooner I can get this lab finally checked off the better :joy:

initialize the variable, please. Do not declare it and give it a value later.

This effort still didn’t result in a solution

what is your updated code?

can you post the code? I can’t debug a screenshot

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

let botName = "Carl";

let botLocation = "Mars";

let favoriteLanguage = "JavaScript";

const botIntroduction = "My name is " + botName + " and I live on " + botLocation + ".";

console.log(botIntroduction);

const botCodingLanguage = "My favorite programming language is " + favoriteLanguage + ".";

console.log(botCodingLanguage);

let codingFact = favoriteLanguage + " is not actually about coffee handwriting";

console.log(codingFact);

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

console.log(codingFact);

codingFact = favoriteLanguage + " is used worldwide by thousands of developers";

console.log(codingFact);

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

It seems there was not a deplyment yet so you need to start the concatenations to give a value to codingFact with a literal tring and not favoriteLanguage

1 Like

Thank you for notifying me, this solution finally worked and I was able to complete. I tried this recommendation a few days ago, and this did not work. So it seems they are working slowly towards fixing the issue.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.