Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

i need help for number 15 alone i am losing hope i tired everything

Your code so far

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

let botName = "china ";
let botLocation = " jamaica";
let favoriteLanguage = " java";

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

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

let codingFact ="i love"+ favoriteLanguage;

console.log(codingFact);

codingFact ="i need"+ favoriteLanguage;

console.log(codingFact);

codingFact="i yearn for"+ 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/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 @angellagrant395,

Check your spacing after the hyphen.

Also, don’t try to force spacing in your variable assignments. Spacing should be handled in your string/variable concatenations.

Happy coding

You have to give it a space and a string for every symbol in console.log. Take care with this symbol (!); it doesn’t need to be wrapped in a string .

console.log("It was fun sharing these facts with you. Goodbye! - “+botName+ " from “+botLocation+”.”)

i tired still not working

i fixed it thank you

Your Welcome. Happy Coding.