Tell us what’s happening:
I cant seem to pass all the assignments.
- You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
Failed:15. 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.
I believe my code passes but whatever i did it did not pass. did i do something wrong?
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
// Variables
let botName = "Bot";
let botLocation = "the planet";
let favoriteLanguage = "javascript";
let codingFact = favoriteLanguage + " is cool";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage + ".");
console.log(codingFact);
// first reassign
codingFact = "Nah " + favoriteLanguage + " is hard! ";
console.log(codingFact);
// second codingfact
codingFact = "But " + favoriteLanguage + " is very challenging. ";
console.log(codingFact);
// third time is the charm
codingFact = "This " + favoriteLanguage + " is very fun!";
console.log(codingFact);
// Goodbye!
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/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot