Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

I am just starting JavaScript, I finished the (Build a Greeting Bot) and passed all the checks except the last one. I logged to the console with the greeting ok but they want me to (add the values of the variables). How do you do that and how to post it so i can move to the next class

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "Bob the coder";
let botLocation = "the planet Mars";
let favoriteLanguage = "java script";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = favoriteLanguage + " is easy to use " + ".";
console.log(codingFact);
codingFact = favoriteLanguage + " is for beginners ";
console.log(codingFact);
codingFact = favoriteLanguage + " is the best " + ".";
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/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

double check that last line for syntax errors, check that the thing you see printed in the console is exactly what is required

the last syntex has a - sign in the array that i put a + in order for it to read correctly on the consule

there isn’t an array, you need to write one single string exactly as given, including the dash

I copyed and pasted it but it still didn’t clear. (“It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).”) and add the values of the variables

please share the final code after you have added the variables

that is my code it read ok on the cosole but still dose not clear the test

15. You should log to the console "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." and add the values of the variables. This is the error i get

I do not see how you are adding the values from variables

how are you concatenating?

please share your updated code

15. You should log to the console "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." and add the values of the variables. This is the error i get. After Goodbye there is a - sign yours shows a coma

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

is that one single string? are you concatenating the variables? where is the dash?

remember the round parentheses are part of the placeholder, don’t need to go in the string

NaN from the planet Mars.  this is what i get when i put the dash in.
onsole.log("It was fun sharing these facts with you. Goodbye! " -  botName + " from " + botLocation + ".");

the dash goes inside the string, if you use it as an operator between string and variable it does not appear inside the string

ok, that was the problem, Thanks