Tell us what’s happening:
I’m not sure what is wrong. I cannot pass 8 or 15.
-
You should log to the console
"My name is (botName) and I live on (botLocation)."
using concatenation to add the variables to the string. -
You should log to the console
"It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)."
using concatenation to add the values of the variables.
What am I missing here?
Your code so far
let greetingMessage = "Hello! I'm your coding fun fact guide!";
console.log(greetingMessage);
let botName = "Reginald ";
let botLocation = "Alpha Centauri";
let favoriteLanguage = "JavaScript";
let nameLocationSentence = "My name is " + botName + "and I live on " + botLocation + ".";
console.log(nameLocationSentence);
let favoriteLanguageSentence = "My favorite programming language is " + favoriteLanguage + ".";
console.log(favoriteLanguageSentence);
let codingFact = "Monks invented " + favoriteLanguage + "!";
console.log(codingFact);
codingFact = "Dogs love " + favoriteLanguage + "!";
console.log(codingFact);
codingFact = "Chickens detest " + favoriteLanguage + "!";
console.log(codingFact);
let closingSentence = "It was fun sharing these facts with you. Goodbye! - " + botName + "from " + botLocation + ".";
console.log(closingSentence);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot