Tell us what’s happening:
I write the code step by step, and the. Run it. But it only approved 1! Idk what’s wrong with it.
Your code so far
let botName = "Chat";
let botLocation = "Masooma's Heart";
let favoriteLanguage = "JS";
let codingFact = " is undoubtedly the most important programming language in the world" ;
console.log("Hello! I'm your coding fun fact guide!");
console.log("My name is " + botName + " and I live in " + botLocation + ".");
console.log("My favorite programming language is " + favoriteLanguage);
console.log(favoriteLanguage + codingFact);
codingFact = "is a single-threaded programming language";
console.log(favoriteLanguage + codingFact);
console.log("It was fun sharing these facts with you. Goodbye!" + botName " from" botLocation + ".")
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
There is an error here, you can see it in your console tab.
SyntaxError: unknown: Unexpected token, expected “,” (12:74)
and make sure you follow the instructions and the exact format mentioned to pass the tests, like punctuation or how many times should you reassign a variable.
Yeah, I read all the steps and did I it carefully! Can u tell me what is the prob in that? So I can fix that
Hi,
Do you see anything wrong here:
Goodbye!" + botName " from" botLocation + ".")
.
Also, it seems like there is another error in your code as well which is preventing some steps to pass. I’ll be looking at it, and in the meantime, you can try to solve the error on that line and try again.
Good luck!
1 Like
Okay, it looks like there’s more than one error.
Step 8 says you should log a certain text into the console. Make sure that the text is correct, check it word by word.
Step 9 also has the same issue, you’re missing a period (.
) at the end of the sentence.
Steps 11 and 13 have the same issue. You should use the variable favoriteLanguage
inside the codingFact
variable, by concatenating it. Then you should log only codingFact
into the console. So here: console.log(favoriteLanguage + codingFact);
, it should only log codingFact
.
Finally, you should have three codingFact
variables, and right now you have two. So add another one and log that into your console.
Make sure to fix the concatenation error in your last line of code first.
I know this is a lot, but don’t worry, go through them one by one, and we’ll be here to help if you still struggle.
Good luck!
1 Like
I’ll do it rn thankyou so much
1 Like