Build a JavaScript Trivia Bot - Test 14


let botName= "Byorgus";
const botLocation = "French";
const favoriteLanguage = "Vyontikese";
let codingFact = "My favorite programming language is " + favoriteLanguage + ".";

console.log("My name is " + botName + " and I live on " + botLocation + ".");

console.log(codingFact);

codingFact = "I lied i hate " + favoriteLanguage + ".";

console.log(codingFact);

codingFact = "HOOOOOOOOM ye shall not torment me any longer " + favoriteLanguage + ".";

console.log(codingFact);

codingFact = "I lied again i dont hate " + favoriteLanguage + ".";

console.log(codingFact);

console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".");

I’m about to lose my insert expletive here I cannot for the life of me figure out why this wont pass

  1. You should assign a value to codingFact for the third time that also contains favoriteLanguage , and log it to the console.

first time

second time

third time

fourth time?

I don’t think the tests like the extra

That’s what I thought but when I delete that last time test 15 also fails

What does your code look like without the 4th assignment to codingFact?

console.log("Hello! I'm your coding fun fact guide!");

let botName= "Byorgus";
const botLocation = "French";
const favoriteLanguage = "Vyontikese";
let codingFact = "My favorite programming language is " + favoriteLanguage + ".";

console.log("My name is " + botName + " and I live on " + botLocation + ".");

console.log(codingFact);

codingFact = "I lied i hate " + favoriteLanguage + ".";

console.log(codingFact);

codingFact = "HOOOOOOOOM ye shall not torment me any longer " + favoriteLanguage + ".";

console.log(codingFact);

console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".");

(Note: Its usually a bad idea to delete the link to the step from the automatically generated post so people trying to help don’t have to play hide and go seek)

You should use string concatenation to log "My favorite programming language is (favoriteLanguage)." to the console.

This is not a codingFact

1 Like

wow thank you so much lol

1 Like