Tell us what’s happening:
I am not sure what I am doing wrong? Help please and thank you!
8. You should log to the console “My name is (botName) and I live on (botLocation).” using concatenation to add the variables to the string.
9. You should log to the console “My favorite programming language is (favoriteLanguage).” using concatenation to add the variable to the string.
15. You should log to the console “It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).” using concatenation to add the
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName = " purple ";
let botLocation = " earth ";
let favoriteLanguage = " java ";
console.log("My name is" + botName + "and I live on" + botLocation + ".");
console.log("My favorite programming language is" + favoriteLanguage + ".");
let codingFact = "Coding is a programming language and" + favoriteLanguage + "is popular" + ".";
console.log(codingFact)
codingFact = "I am learning" + favoriteLanguage + ".";
console.log(codingFact);
codingFact = ("It is important " + "to know" + 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; rv:139.0) Gecko/20100101 Firefox/139.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot