Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

8 and 9 are not working and I’m assuming this is because it is saying to “add the variables to the string.” What string? Which string do you want added to because two variables are being used in 8? And I’m assuming when you say to “add the variables” you are talking about the taking the whole of what is being written in the console as the new value for said string?

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "Fred";
let botLocation = "Prosper, TX";
let favoriteLanguage = "English";
console.log("My name is " + botName + " and I live on " + botLocation);
console.log("My favorite programming language is " + favoriteLanguage);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

[SPOILERS]
Hi, I hope you’re doing well. I checked your code and noticed that you forgot the dot “.” at the end. I recommend using template strings for better readability.

code removed by moderator

Good coding :ok_hand::+1:

Well, we hadn’t gone over template strings yet, though I just looked them up on w3schools. I can see how that does make it easier to view. I can’t believe it was such a simple error, I was thinking there was something far more complicated involved.

:joy:Every time I had these kinds of problems, I would start looking far and wide, when it was just a missing “.” or “,” etc.. :man_facepalming:. After fixing it, you feel like crying because you can spend so much time on something so small​:cry:. The courses are really demanding and make you pay more attention it’s really cool and frustrating at the same time.:smiling_face_with_sunglasses:

Good Luck :heart::ok_hand:

I do rather enjoy it.

1 Like

hi @LaudeDignus

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

I don’t recall posting the solution. LaudeDignus helped me by pointing out what I was missing.

the message is for LaudeDignus, posting solutions is not allowed