Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

It’s showing that I’m failing steps tests 12 (You should log codingFact to the console.), 13(You should assign a new value to codingFact that also contains favoriteLanguage, and log it to the console.), and 14(You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.).

I’m especially confused how I’m failing step 12 since it’s written exactly as asked, unless I’m missing something very obvious?

I appreciate any help in advance!

Your code so far

console.log ("Hello! I'm your coding fun fact guide!");
let botName = "CorgiFactBot";
let botLocation = "Dogsville";
let favoriteLanguage = "DoggyScript";
console.log ("My name is " + botName + " and I live on " + botLocation + ".");
console.log ("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = "The cool thing about " + favoriteLanguage + " is that it's made for typing with your paws.";
console.log (codingFact);
codingFact = "(I also came up with the name " + favoriteLanguage + " myself :3)";
console.log (codingFact);
codingFact = "A common misconception about " + favoriteLanguage + " is that it's just a ripoff of KittyScript, but do you really think that cat paws are big enough to type as long of functions as we can?";
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

HI @Road

Welcome to the forum!

It is not passing because you usually don’t create spaces between the console.log and the parenthesis here

Once I remove the spaces it passes for me

welp I appreciate it a ton, I don’t know what happened that made me think there’s supposed to be a space in the console log command, but looking back I guess I just completely misread.

I wonder why it passed with the spaces in the workshop before this, as well as the first few console.log checks in this lab?

Thank you so much though! I’d have gone crazy sitting on this the whole night

That had to deal with the tests. Some of the tests accounted for spacing while others didn’t

1 Like