# Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

**URL:** <https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/800445>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [September 17, 2026, 8:16pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/800445 "2026-09-17T20:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenedog91](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@wenedog91](https://forum.freecodecamp.org/u/wenedog91)\
**Post date:** [September 17, 2026, 8:16pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/800445/1 "2026-09-17T20:16:06Z")

</div>

### Tell us what’s happening:

All the code works up to the point when i insert the last line, then it acts like everything isn’t there. For example, I’m on the last step and i finish typing in the last line of code, and it sets me back to the first step. I don’t know if this is a bug, or something is wrong with my code.

### Your code so far

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

let botName = "triviaBot";
let botLocation = "Your computer";
let favoriteLanguage = "Code";

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

let codingFact = "People use " + favoriteLanguage + " to build huge softwares.";

console.log(codingFact);

codingFact = "They used " + favoriteLanguage + " to make me too!";

console.log(codingFact);

codingFact = "I think " + favoriteLanguage + " is the best EVER!";

console.log(codingFact);

// Area of concern.

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/153.0.0.0 Safari/537.36`

### Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/javascript-v9/lab-javascript-trivia-bot/lab-javascript-trivia-bot)**
>
> Learn to Code for Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md)

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [September 17, 2026, 8:30pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/800445/2 "2026-09-17T20:30:44Z")

</div>

Welcome to the forum @wenedog91,

> You should log `"It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)."`

Make sure your spacing and punctuation matches _exactly_ to the instructions.

Happy coding

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [September 17, 2026, 8:35pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/800445/3 "2026-09-17T20:35:53Z")

</div>

> [@wenedog91](#):
>
> `' from ' + botLocation +);`

you can’t have a `+` without an other thing after, this is a syntax error and none of your code works, and all the tests fail for that
