Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I don’t know why my code on step 14 still incorrect, please help me.

Your code so far

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

let botName = "Anggun";
let botLocation = "Indonesia";
let favoriteLanguage = "JavaScript";

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

let codingFact = "JavaScript is a versatile programming language.";
console.log(codingFact);

codingFact = "And for another fact, " + favoriteLanguage + " also very popular.";
console.log(codingFact);

codingFact = "I hope we can mastering " + 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; rv:138.0) Gecko/20100101 Firefox/138.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

The instructions say you need three of the sentences using the favoriteLanguage variable, so you need one more.

Hi,
Try using your favoriteLanguage variable instead of JavaScript in your first codingFact.

Good luck!

Hey! thank you so much for your help.

1 Like