Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

When I get to test #14, the third codingFact, it does not pass. I have completed all of the requirements to the best of my ability. Why won’t it run? Is this a bug?

codingFact

for the third time that also contains

favoriteLanguage

, and log it to the console.

Your code so far

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

let botName = "Jeffries";
let botLocation = "Wilmington, NC";
let favoriteLanguage = "Javascript";

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

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

let codingFact = "I have loved " + favoriteLanguage + " for a long time.";
console.log (codingFact);

codingFact = "I don't actually know anything about " + favoriteLanguage + ".";
console.log(codingFact);

codingFact = "Why doesnt this work when I put " + 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/137.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
https://www.freecodecamp.org/learn/full-stack-developer/lab-javascript-trivia-bot/lab-javascript-trivia-bot

Welcome to the forum @ethan2damax

For one of the console logs, try removing the space before the parenthese.

Happy coding

That did the trick! Thank you so much for helping me out.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.