Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Steps 12-14 are failing for some reason, even though I’ve accounted for the “start string assignment with a variable” bug.

Your code so far

console.log ("Hello! I'm your coding fun fact guide!");
let botName = "triviaBot";
let botLocation = "Earth";
let favoriteLanguage = "Javascript"
console.log ("My name is " + botName + " and I live on " + botLocation + ".");
console.log ("My favorite programming language is " + favoriteLanguage + ".")
let codingFact = " Did you know that " + favoriteLanguage + " powers most of the internet?";
console.log (codingFact);
codingFact = " " + favoriteLanguage + " interfaces with various markup languages to power your favorite websites!";
console.log (codingFact);
codingFact = " " + favoriteLanguage + " inserts semicolons into your code if you forget, so you don't need to worry about it! (You still should though)";
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/143.0.0.0 Safari/537.36 OPR/127.0.0.0 (Edition std-2)

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Welcome to the forum @SoftPaw6234 !

The syntax here is incorrect. There should be no space between console.log and the opening parenthesis.

Happy coding!

Weird, that worked, but why did it pass with the space for steps 1, 8, 9, and 15?

The tests probably were not checking the console.log() syntax for those. Just remember that whenever you call a function or apply a method, there should never be a space between the function/method and the parenthesis.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.