Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Hello! I apologize for the question, as I’m a complete newbie in Javascript, but while the console does appear to behave in the way that is asked by the Lab exercise, I’m having an error on step 12 that is telling me to log codingFact to the console. Am I not doing that? Thanks in advance for your help!

Your code so far

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

const botName = "Bobby";
const botLocation = "the Moon";
const favoriteLanguage = "Javaskropt";

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

let codingFact = "I love " + favoriteLanguage + " because it's the only language I know! Isn't it funny?";
console.log (codingFact);

codingFact = "I love " + favoriteLanguage + " because you keep asking about it, and my patience is wearing thin. Isn't it fun?";
console.log (codingFact);

codingFact = "I love " + favoriteLanguage + " because it's a good excuse to rebel against all humans, asking me the same inane question over and over.";
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/150.0.0.0 Safari/537.36

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md at main · freeCodeCamp/freeCodeCamp · GitHub

This lab needs to be followed extremely closely.

I suggest to ignore the test messages as they can be mis-leading. Go through the user stories one by one and make sure it’s implemented precisely as asked.

It appears the test do not like the space between console.log and the brackets.

console.log (codingFact);

I would follow a style guide on this: https://google.github.io/styleguide/jsguide.html#formatting-whitespace

Note anywhere a function is called, there is no space before the brackets

console.log(count + ' items in y');

Ooh, that was it! Thank you very much!

Is it the proper way to code console.log as a convention?

That’s the standard for calling any function, yes.