# 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/789049>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [May 16, 2026, 12:09pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/789049 "2026-05-16T12:09:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brina](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@brina](https://forum.freecodecamp.org/u/brina)\
**Post date:** [May 16, 2026, 12:09pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/789049/1 "2026-05-16T12:09:25Z")

</div>

Hii, down below is my code. I’ve tried to change a lot of things but from the start it tells me that there is a syntax issue in line 4 and i can’t figure out why. Can someone share their insight?

console.log(“Hello! I’m your coding fun fact guide!”);  
let botName = “Pedro”;  
let botLocation = “Isla de Plata”;  
let favoriteLanguage = “JavaScript”;  
console.log("My name is " + botName + " and I live on " + botLocation + “.”;  
console.log(“My favorite programming language is " + favoriteLanguage + “.”);  
let codingFact = favoriteLanguage + " is used for front-end software development.”;  
console.log(codingFact);  
codingFact = "I am learning " + favoriteLanguage + “.”;  
console.log(codingFact);  
codingFact = “Learning " + favoriteLanguage + " is not easy.”;  
console.log(codingFact);  
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + ’ from ’ + botLocation + ‘.’);

**Your code so far**

```js
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Pedro";
let botLocation = "Isla de Plata";
let favoriteLanguage = "JavaScript";
console.log("My name is " + botName + " and I live on " + botLocation + ".";
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = favoriteLanguage + " is used for front-end software development.";
console.log(codingFact);
codingFact = "I am learning " + favoriteLanguage + ".";
console.log(codingFact);
codingFact = "Learning " + favoriteLanguage + " is not easy.";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + ' from ' + botLocation + '.');

```

**Your mobile information:**

```txt
iPad - iPadOS26.4.2

```

**Challenge:** Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

**Link to the challenge:**

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

---

<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:** [May 16, 2026, 12:26pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/789049/2 "2026-05-16T12:26:54Z")

</div>

Welcome to the forum @brina!

![image](https://global.discourse-cdn.com/freecodecamp/original/4X/1/1/7/1178ef5d53a9c2768901523f4b2bd9f3a542df2f.png)

See the red squiggly line under the semi-colon in the editor? Notice that the opening parenthesis is colored red? That’s a clue pointing to the syntax error. Do you have a closing parenthesis?

Happy coding!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [June 13, 2026, 12:27pm UTC](https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/789049/3 "2026-06-13T12:27:15Z")

</div>

Closed on June 13, 2026, 12:27pm UTC

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