Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I keep getting errors on instruction numbers 8, 9 and 15.
I’ve checked grammar issues, made sure my spaces are correct, and I just don’t understand what I’m doing wrong.

Your code so far

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

let botName = "JB88 Tron";
let botLocation = "Planet Mars";
let favoriteLanguage = "JavaScript";

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

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

let codingFact = "Did you know?" + " " + favoriteLanguage + " " + "was created by Brendan Eich in just 10 days?";

console.log(codingFact);

codingFact = "Fun Fact #2: While" + " " + favoriteLanguage + " " + "is known for being used for front-end development, it can also be used for back-end applications through Node.js.";

console.log(codingFact);

codingFact = "Fun Fact #3:" + " " + favoriteLanguage + " " + "has a strict mode that can be enabled to make the language more secure and prevent certain types of errors.";

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/137.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hi there!

Your code looks fine…spacing and concatenation works. But it looks like the tests don’t like the double words for botName and botLocation, nor do they like your use of the extra + " " + when concatenating spaces rather than just adding the spacing in the preceding or trailing strings.

Happy coding!

1 Like

Thank you very much!