Tell us what’s happening:
I keep getting the error:
- You should assign a value to codingFact for the third time that also contains favouriteLanguage, and log it to the console.
Tried the fixes suggested here. Added a new codingFact & started with a string (“”). None worked. What could be the issue?
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Pink";
let botLocation = "Earth";
let favoriteLanguage = "JavaScript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = " is one of the easiest programming languages to learn";
console.log(favoriteLanguage + codingFact);
codingFact = "freeCodeCamp offers a curriculum to learn " + favoriteLanguage + " for free";
console.log(codingFact);
codingFact = "Debugging " + favoriteLanguage + " is not fun though.";
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/605.1.15 (KHTML, like Gecko) Version/26.0.1 Safari/605.1.15
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot