Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

this is the last part of my task and it keeps telling me that its wrong can i ask you whats wrong in this part thank youu!!

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

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
const botName = "botName";
const botLocation = "botLocation";
const favoriteLanguage = "favoriteLanguage";


console.log("My name is " + botName +" and I live on "+ botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")

let codingFact
codingFact = " I love it " + favoriteLanguage + ".";
console.log(codingFact);

console.log(favoriteLanguage);
codingFact = " I freaking love it " + favoriteLanguage + ".";
console.log(codingFact);

codingFact = " I freaking love it " + 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Welcome to the forum :wave:

What does your output look like?

Hi there, welcome to the community!

It took me a bit to analyze your code, and I’ve found a few issues that might be causing the test to fail:

  1. Remove any extra spaces at the beginning of your console.log() statements, clean formatting matters.
  2. The line console.log(favoriteLanguage); is not required by the instructions, so it should be removed.
  3. The codingFact variable should be assigned three different values throughout the code for the tests to pass.
  4. You’re missing the - (hyphen) in the final console.log() message.
  5. Also, consider adding a space before and after each + in your string concatenations for better readability (optional but recommended).

Double-check these points and you should be good to go!

this was the instruction;
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.

this is what i did;
console.log(" It was fun sharing these facts with you. Goodbye! - " + botName +" from "+ botLocationconsole + “.”);

Make sure your strings match exactly, including spaces.