Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I’m not seeing anything wrong with my code. It’s failing tests 14 and 15, but I believe I followed everything accurately. Is there something I’m missing?

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
const botName = "CodeBot";
const botLocation = "Mars";
const favoriteLanguage = "Javascript";
console.log ("My name is " + botName + " and I live on " + botLocation + ".");
let codingFact = "My favorite programming language is " + favoriteLanguage + ".";

console.log(codingFact);

codingFact = "It's cool to use " + favoriteLanguage;

console.log(codingFact);

codingFact = "Why not use " + 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/134.0.0.0 Safari/537.36 Edg/134.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Welcome to the forum :wave:

  1. You should use string concatenation to log "My favorite programming language is (favoriteLanguage)." to the console.

Check you the code that you wrote to implement this step.

Thanks! I get it now and that worked. D’oh. What tripped me up was that the code was logging “My favorite programming language is Javascript.” to the console and it passed that test, but then the later tests didn’t pass.

EDIT: Sometimes the hints aren’t helpful and it helps to revisit the instructions and see how you implemented it