Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Please help me find the error! I have read this thing over and over again! Can’t find it
console.log (“It was fun sharing these facts with you” + ". " + "Goodbye! " + "- " + botName + “from " + botLocation +”. ");

Your code so far

console.log ("Hello! I'm your coding fun fact guide!");
let botName = "TriviaBot"
let botLocation = "a Computer";
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 provides interaction functionality and dynamic behavior for webpage development" + ", " + "which is why " + favoriteLanguage + " is my favorite" + ".");
console.log(codingFact);
codingFact = ("JavaScript typically interact with HTML and CSS on a webpage" + ", " + "which is another reason it is my favorite " + favoriteLanguage + ".");
console.log(codingFact);
codingFact = ("String concatenation is so easy to use 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

it looks like the tests only want you to concatenate the variables to the strings.

I was able to pass when I removed these extra concatenations here

all of that can go in the first string.

also you are missing a space here

once you fix those things, it should pass now

Thank you!! It went through.

1 Like