Build a Trivia Bot lab

My code is passing all the tests but the console is telling me I have a syntax error on line 7, I just don’t see it:

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 + " is the same as Java?";

console.log(codingFact);

codingFact = favoriteLanguage + " is one of many programming languages in which the semi-colon is extremely important.";
console.log(codingFact);

codingFact = favoriteLanguage + " is used with other programming languages,  like HTML/CSS, to create a more dynamic web experience.";
console.log(codingFact);

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

where is the string starting?

1 Like

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').