#14 - You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
If I delete the last change for codingFact #15 passes. I have been at this for over 4 hours now with the same two numbers. I have switched browsers to Safari, refreshed the webpage, googled the question, copied format (counting spaces), checked through GitHub. I just dont see the issue. Everything is perfect in console, it seems.
Any help is appreciated greatly!
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Ty";
let botLocation = "Mars";
let favoriteLanguage = "Java";
console.log("My name is " + botName + " and I live on " + botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")
// First Assignment of codingFact
let codingFact = "I am learning ";
console.log(codingFact + favoriteLanguage + ".")
// Second Assignment of codingFact
codingFact= "The hardest code is " + favoriteLanguage + ".";
console.log(codingFact)
// Third Assignment of codingFact
codingFact = "Botties speak 3 other dialacts of " + favoriteLanguage + "!"
console.log(codingFact)
// Fourth Assignment of codingFact
codingFact = "Bots really love the dialect of " + 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Ty";
let botLocation = "Mars";
let favoriteLanguage = "Java";
console.log("My name is " + botName + " and I live on " + botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")
// First Assignment of codingFact
let codingFact = "I am learning ";
console.log(codingFact + favoriteLanguage + ".")
// Second Assignment of codingFact
codingFact = "The hardest code is " + favoriteLanguage + ".";
console.log(codingFact)
// Third Assignment of codingFact
codingFact = "Botties speak 3 other dialacts of " + favoriteLanguage + "!"
console.log(codingFact)
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".")
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Ty";
let botLocation = "Mars";
let favoriteLanguage = "Java";
console.log("My name is " + botName + " and I live on " + botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")
// First Assignment of codingFact
let codingFact = "I am learning ";
console.log(codingFact)
// Second Assignment of codingFact
codingFact = "The hardest code is " + favoriteLanguage + ".";
console.log(codingFact)
// Third Assignment of codingFact
codingFact = "Botties speak 3 other dialacts of " + favoriteLanguage + "!"
console.log(codingFact)
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".")
I understand that. But you did not answer my question. I would read the user stories and check that the change you made actually is in line with them. (i.e. why were you using the line you previously had?)
Silly suggestion, but it may be useful for some users (myself included) if it is specified in the instructions exactly how many assignments the test requires to pass. I wrote five, to get in some more practice, and it failed until I deleted two.