Tell us what’s happening:
I can’t pass this exam because of:
9. You should log codingFact to the console.
6. You should log to the console “My favorite programming language is (favoriteLanguage).” using concatenation to add the variable to the string.
what is my problem!!!?
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName="ALAMI";
let botLocation="KALAMI";
let favoriteLanguage = "Javascript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact="The " + favoriteLanguage + " is My favorite programming language.";
console.log(codingFact);
favoriteLanguage="PettyScript";
codingFact = "My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact);
codingFact="The "+favoriteLanguage+" is a powerful tool for creating dynamic webpage";
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/132.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot