Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

console.log(“Hello! I’m your coding fun fact guide!”);

let botName = “Kolade”;
console.log(botName);

let botLocation = “Nigeria”;
console.log(botLocation);

let favoriteLanguage = “javascript”;
console.log(favoriteLanguage);

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

Is there anything wrong with the code above? Despite it being correct and displaying the exact result expected in the result bar, it’s still displaying the error checks.

Your code so far

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

let botName = "Kolade";
console.log(botName);

let botLocation = "Nigeria";
console.log(botLocation);

let favoriteLanguage = "javascript";
console.log(favoriteLanguage);

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

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

let codingFact = "I love to work on " + favoriteLanguage + ".";
console.log(codingFact);

codingFact = "Coding with " + favoriteLanguage + " is fun.";
console.log(codingFact);

codingFact = "I am learning " + favoriteLanguage + " fast.";
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/147.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Please explain what the issue is? What error message(s) are you getting?

These are the error messages. I corrected it many times but these keep popping up. I feel like if there is any error detected, i should be corrected so i can move on with the class. I feel stuck right now. Thank you for your attention.

8. You should log to the console "My name is (botName) and I live on (botLocation)." and add the variables to the string.
9. You should log to the console "My favorite programming language is (favoriteLanguage)." and add the variable to the string.
13. You should assign a new value to codingFact that also contains favoriteLanguage, and log it to the console.
14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
15. 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.

please review the user stories, make sure that you have only the console.log statements that you are asked to use

Thats exactly all i did. Kindly see the screenshot attached.

Hi

You are not asked to just log the variable names to the console. You need to put the consoles exactly as asked.

are you sure that’s exactly what you did?

these are the first 3 user stories, can you tell me which lines match each one?

  1. You should log "Hello! I'm your coding fun fact guide!" to the console as a greeting message to the user.
  2. You should create three variables: botName, botLocation, and favoriteLanguage, that store the bot’s name, where it’s from, and its favorite coding language, respectively.
  3. You should log "My name is (botName) and I live on (botLocation)." to the console.

Welcome to the forum @Koladewhalez!

You were not asked to log botName, botLocation, and favoriteLanguage. Remove those logs and your code should pass.

Happy coding!

Thank you for your assistance. I removed the logs and the code passed.