Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Step 11 states:

You should give codingFact a value that includes favoriteLanguage using concatenation.

I’ve declared on one line, also started with a string, but my code still will not pass but shows up fine on the console. I am not sure what is the issue

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName;
botName = "mac-dad"
let botLocation;
botLocation = "earth";
let favoriteLanguage;
favoriteLanguage = "javascript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = "The first framework I used was ember.js, which uses " + favoriteLanguage;
console.log(codingFact);
codingFact = "Css is my least favorite so far.";
console.log(codingFact);
codingFact = "I think html is alright.";
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 (Macintosh; Intel Mac OS X 10_15_7) 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

Welcome to the forum @mac-dad

User stories 13 and 14 are not passing because the code does not include a variable.

Happy coding

1 Like