Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

So basically I’m bouncing between having only something wrong with 14 and having something wrong with 14 + 15. I’ve been trying to suss out if I’m missing something or if it’s a bug. I’m pretty sure I have all the codingFacts and I think they’re all functional, I’m not seeing any obvious issues on the console at least. But when I add that last fact it says that 15 is wrong as well, hence why it’s commented out atm. Is there something I’m just missing here?

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "Ismo";
let botLocation = "Finland";
let favoriteLanguage = "Finnish";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact; 
codingFact = "Finnish isn't a coding language!";
console.log(codingFact);
codingFact = " " + favoriteLanguage + " is part of the Uralic language family.";
console.log(codingFact);
codingFact = " " + favoriteLanguage + " is a fun language to learn!";
console.log(codingFact);
/*codingFact = " " + favoriteLanguage + " isn't as hard as it seems, I promise!";
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/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Welcome to the forum @Trainbot

You added a string instead of a variable to the first codingFact variable.
Try replacing it with a variable.

Happy coding

I think the tests are checking for the use of favoriteLanguage. Adding the variable to your first codeFact reassignment should solve your issue.

Yup that was it, I added the favoriteLanguage variable and it finally registered it. I had a feeling it was something simple like this but the fact that I would get the error on 15 over this was throwing me for a loop. Thanks so much for the extra set of eyes you guys!

2 Likes