Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Hello guys,

Error appear in step 11:- You should give codingFact a value that includes favoriteLanguage using concatenation.

otherwise my output is all correct

Your code so far

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

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

 let codingFact;

 codingFact = favoriteLanguage + " is a versatile programming language.";
 console.log(codingFact);

 codingFact = "Many popular websites are built using " + favoriteLanguage + ".";
 console.log(codingFact);

 codingFact = "Learning " + favoriteLanguage + " can open up many career opportunities!";
 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/135.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hi. Don’t leave coding fact undeclared. Move your first fact into the value of your initial declaration of coding fact and it should pass. If you look at story 5 it doesn’t say leave it unassigned.

1 Like

“Thank you so much! It worked!”

1 Like