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
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
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
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
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 + ".");