Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I keep having an issue with step 9.
9. You should log to the console “My favorite programming language is (favoriteLanguage).” and add the variable to the string.

I do exacly what it says, and I’ve tried doing it by only declaring let codingFact; and initializing later, but it also didn’t work. Tried making corrections on the string but nothing worked either.

Your code so far

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

let botName, botLocation, favoriteLanguage;

botName = "Daniel";
botLocation = "Japan";
favoriteLanguage = "JavaScript";

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

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

let codingFact = "My favorite language is " + favoriteLanguage + ".";;


console.log(codingFact);

favoriteLanguage = "Java";
codingFact = "My new favorite language is " + favoriteLanguage + ".";
console.log(codingFact);

codingFact = "" + 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:144.0) Gecko/20100101 Firefox/144.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

why are you changing favoriteLanguage?