Test is not passing and showing error below:
SyntaxError: unknown: Unexpected token, expected “,” (19:96)
17 | console.log(codingFact);
18 |
19 | console.log(“It was fun sharing these facts with you. Goodbye!” +botName+ “from”+botLocation+“.”;
|
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName="Rianna";
let botLocation="UK";
let favoriteLanguage="Java";
console.log("My name is " +botName+" and I live on "+ botLocation+ ".");
let codingFact="My favorite programming language is "+(favoriteLanguage)+".";
console.log(codingFact);
codingFact="I have studied "+favoriteLanguage+ " in my mastered degree in past many years ago.";
console.log(codingFact);
codingFact="I always enjoyed programming in "+favoriteLanguage + ".";
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/144.0.0.0 Safari/537.36 Edg/144.0.0.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
Thanks I put closing bracket but it still showing error as :
14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
15. You should log to the console “It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation).” and add the values of the variables.
// running tests
14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
15. You should log to the console "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." and add the values of the variables.
// tests completed
// console output
Hello! I'm your coding fun fact guide!
My name is Rianna and I live on UK.
My favorite programming language is Java.
I have studied Java in my mastered degree in past many years ago.
I always enjoyed programming in Java.
It was fun sharing these facts with you. Goodbye!-Rianna from UK.
console.log("Hello! I'm your coding fun fact guide!");
let botName="Rianna";
let botLocation="UK";
let favoriteLanguage="Java";
console.log("My name is " +botName+" and I live on "+ botLocation+ ".");
let codingFact="My favorite programming language is " +favoriteLanguage+ ".";
console.log(codingFact);
codingFact="I have studied "+favoriteLanguage+ " in my mastered degree in past many years ago.";
console.log(codingFact);
codingFact="I always enjoyed programming in "+ favoriteLanguage + ".";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye!-" +botName+ " from "+botLocation+ ".");
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.
You should log "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." to the console as a farewell statement from the bot.
console.log("Hello! I'm your coding fun fact guide!");
let botName="Rianna";
let botLocation="UK";
let favoriteLanguage="Java";
console.log("My name is " +botName+" and I live on "+ botLocation+ ".");
let codingFact="My favorite programming language is " +favoriteLanguage+ ".";
console.log(codingFact);
codingFact="I have studied "+favoriteLanguage+ " in my mastered degree in past many years ago.";
console.log(codingFact);
codingFact="I always enjoyed programming in "+ favoriteLanguage + ".";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye! - " +botName+ " from "+botLocation+ ".");
Output as below:
// running tests
14. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
15. You should log to the console "It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." and add the values of the variables.
// tests completed
// console output
Hello! I'm your coding fun fact guide!
My name is Rianna and I live on UK.
My favorite programming language is Java.
I have studied Java in my mastered degree in past many years ago.
I always enjoyed programming in Java.
It was fun sharing these facts with you. Goodbye! - Rianna from UK.