Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

What’s wrong with step 15? once I do step 15 the all rights from step 1 to 14 changes to wrongs.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "david";
let botLocation = "universe";
let favoriteLanguage = "sahiil";

console.log("My name is "+ botName+ " and I live on "+ botLocation+ ".");
console.log("My favorite programming language is "+ favoriteLanguage + ".");
let codingFact = favoriteLanguage + " is used by developer beginners.";
console.log(codingFact);
codingFact = favoriteLanguage + " was invented before many other languages.";
console.log(codingFact);
codingFact = favoriteLanguage + " is the future.";
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/151.0.0.0 Safari/537.36

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 @ndavuti,

Your code is showing an error in the console:

SyntaxError: unknown: Unexpected token, expected "," (15:87)

  13 | console.log(codingFact);
  14 |
> 15 | console.log("It was fun sharing these facts with you. Goodbye! - "+ botname + " from " botLocation + ".");
     |                                                                                        ^

And the editor is prompting you about where the issue is with a red squiggly underline and three dots under the first letter of a variable name.

image

Happy coding

@alvaraymon753 ,

What code in the above post is not relevant? What trivia questions?

Can’t you test the code yourself to see if it’s working or look at the error messages?

Happy coding