Tell us what’s happening:
I am working on a challenge where I need to reassign a variable named codingFact three times, each time including the favoriteLanguage variable.
While my code seems to meet the requirements, the test for the third reassignment of codingFact is failing.
I suspect the issue might be due to strict formatting expectations in the test case.
Can someone guide me on what exact format is expected or how to debug this type of issue?
My code outputs correctly but isn’t passing the test.
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName ="rinaIce";
let botLocation= "Yaoundé";
let favoriteLanguage= "Python";
console.log(`My name is ${botName} and I live on ${botLocation}.`);
console.log(`My favorite programming language is ${favoriteLanguage}.`);
let codingFact = "The C language is easier than "+favoriteLanguage+".";
console.log(codingFact)
codingFact = `${favoriteLanguage} has a huge community of developers.`;
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot