Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I can’t seem to pass assignments number 14 and 15.

I believe my code is fine but it seems whatever fix I tried, it won’t let me pass, did I do something wrong?

Your code so far

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

let botName = "John";
let botLocation = "Nicaragua";
let favoriteLanguage = "Python";

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

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

codingFact = "My 2nd favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact);

codingFact =  "This " +favoriteLanguage + "is really fun!";
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/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Welcome to the forum @certifiedsteven

9. You should log to the console "My favorite programming language is (favoriteLanguage)." and add the variable to the string.

Are you sure to followed the instructions for test 9?

Happy coding

It finally worked, thank you so much, never thought I’d miss this small detail.

1 Like