Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I seem to be stuck here. :frowning:
Failed: 14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
Failed: 15. You should log to the console “It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).” using concatenation to add the values of the variables.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "professor Coder";
let botLocation = "Planet Earth";
let favoriteLanguage = "JavaScript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
let codingFact = "New language for me" + favoriteLanguage;
console.log("My favorite programming language is " + favoriteLanguage + ".");
console.log(codingFact);
codingFact = "I am studying" + favoriteLanguage;
codingFact = "reassigning again" + favoriteLanguage;
console.log(codingFact);
console.log("My favorite programming language is " + favoriteLanguage + ".");
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; rv:139.0) Gecko/20100101 Firefox/139.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hi @Jakemeister37

Where is the third codingFact reassignment?

Happy coding

Hi. Sorry for not getting back to you sooner. I took a brain break. :grinning_face: I started from scratch again today and it worked!

1 Like