Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Hi. I’m running into an error where none of my console.log statements are working. Please help.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "BotCoder";
let botLocation = "VSConsole";
let favoriteLanguage = "Python";
console.log(`My name is ${botName} and I live on ${botLocation}.`);
console.log(`My favorite programming language is ${favoriteLanguage}`);
let codingFact;
codingFact = `I like coding in ${favoriteLanguage}`;
console.log(codingFact);
codingFact = `I like writing code in ${favoriteLanguage}`;
console.log(codingFact);
codingFact = `I am glad that I like writing code in ${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:135.0) Gecko/20100101 Firefox/135.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hey there,
The instructions make it clear that you should use string concatenation, not template literals.
Good luck!

hi. i realised that much later. so embarassing. thank you for your help.

1 Like

Failing at step 8. Pls help.

console.log("Hello! I'm your coding fun fact guide!");
let botName = "BotCoder";
let botLocation = "VSConsole";
let favoriteLanguage = "Python";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact;
codingFact = "I like " + favoriteLanguage + ".";
console.log(codingFact);
codingFact = "I like writing code in "+ favoriteLanguage + ".";
console.log(codingFact);
codingFact = "I am glad that I like writing code in "+ favoriteLanguage + ".";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".");

initialize codingFact, do not delcare it without a value

hi. it worked. thank you.