Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Hello, Please I need help with Test-15

Error message
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.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName = "Scripture";
let botLocation = "Internet";
let favoriteLanguage = "JavaScript";

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

console.log("My favorite programming language is " + favoriteLanguage + ".");

let codingFact = ("I am an Ai that answer scriptural questions " + "I am fully built with " + favoriteLanguage);
console.log(codingFact);

codingFact = (favoriteLanguage + " helps me interact with you");
console.log(codingFact);

codingFact = ("Every answers I'll give you, " + "are all scripture based " + "with the help of  " + 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

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hi there! I’m new at this too. In my opinion, you can use less concatenation, is simpler and more efficient.

console.log(“It was fun sharing these facts with you” + ". " + “Goodbye” + “! " +botName+” from " + botLocation + “.”);

Try to combine all the text as much as you can, and be aware of spacing.

Cheers!

1 Like

I used the Template literal, that’s way simpler and faster. Thanks for the help

Exactly! You got it. Good luck!

1 Like