Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot (STEP 15)

Tell us what’s happening:

I keep getting the following error message telling me to,

“You should log to the console “It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).” and add the values of the variables.”

but I put in the correct code for Step 15 repeatedly and that same error message keeps popping up.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "MoBot";
let botLocation = "Hong Kong";
let favoriteLanguage = "Java";
console.log("My name is " + botName + " and I live on " + botLocation + ".");   
console.log("My favorite programming language is " + favoriteLanguage + ".");

let codingFact = favoriteLanguage +  " is the most fun language to learn."; 
console.log("I think " + codingFact);

codingFact = favoriteLanguage + " runs a lot of the internet.";
console.log(codingFact);
codingFact = favoriteLanguage + " is an important language to learn.";
console.log(codingFact);
codingFact = favoriteLanguage + " runs on billions of devices.";
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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md at main · freeCodeCamp/freeCodeCamp · GitHub

how many times are you asked to log codingFact? make sure you did it the right number of times

I did it 3 time + there is the initial let codingFact. Is that the mistake?

When I ran the code, only Step 15 remains as the problem.

You are right.

This was the mistake…

let codingFact = favoriteLanguage + " is the most fun language to learn.";
console.log("I think " + codingFact);

I had to get rid of that console.log…but why is that a mistake?

because if thet ests expect three codingFact logs and then that string
but you logs condingFact four times…

codingFact
codingFact
codingFact
codingFact <- tests are checking this for "It was fun..."
"It was fun..."

the tests check the fourth codingFact log and expect to find the It was fun... string, and the test fails