Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

i can’t declare a word to my variable so should i do to fix it

Your code so far

console.log("Hello! I'm your coding fun fact guide!")
let botName = bob;
let botLocation;
let favoriteLanguage;
console.log("My name is " + botName + "and I live on " + botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")
let 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/151.0.0.0 Safari/537.36 Edg/151.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @jaydengranado45

ReferenceError: bob is not defined

Did you see the message in the console?

Happy coding

For this project, I’d work through each requirement one at a time rather than trying to build the whole bot at once. Start by defining the variables you need, then handle the questions and answers using basic strings, variables, and console.log().

If something isn’t passing, compare the output with the exact requirement in the project. Small differences in capitalization, punctuation, spacing, or variable values can matter in automated tests.

If you’re stuck on a particular step, posting the code you currently have, along with the exact error or failed test, would make it much easier for someone to identify the problem. Without that information, it’s difficult to say what needs changing without guessing.