Build a JavaScript Trivia Bot Step 8

Step 8. You should log to the console “My name is (botName) and I live on (botLocation).” using concatenation to add the variables to the string.

based off my code what did i do wrong?

Your code so far

console.log("Hello! I'm your coding fun fact guide!")
const botName = "SK Bot";
const botLocation = "the web"
const favoriteLanguage = "JavaScript"
const botSentence = "My name is " + botName + " and i live on " + botLocation + ".";
console.log(botSentence)

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

@ILM do you have any ideas for me? @sanity ?

Hi @shalom_karr

Please do not ping forum members directly for help with your coding challenge.

Check the capitalisation for all the letters for the last message in the console.

Happy coding

1 Like

Thanks Teller, it was the i.

1 Like

For some reason i only pass code 12 when i log twice:
console.log(codingFact)
console.log(codingFact)

please advise.

Your code so far

console.log("Hello! I'm your coding fun fact guide!")
const botName = "SK Bot";
const botLocation = "the web"
const favoriteLanguage = "JavaScript"
const botSentence = "My name is " + botName + " and I live on " + botLocation + ".";
console.log(botSentence)
let codingFact;
codingFact = "My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact)
console.log(codingFact)







Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

When i do this i can’t pass step 12

console.log("Hello! I'm your coding fun fact guide!")
const botName = "SK Bot";
const botLocation = "the web"
const favoriteLanguage = "JavaScript"
const botSentence = "My name is " + botName + " and I live on " + botLocation + ".";
console.log(botSentence)
let codingFact;
codingFact = "My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact)

// running tests 12. You should log

codingFact

to the console. 13. You should assign a new value to

codingFact

that also contains

favoriteLanguage

, and log it to the console. 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)."

using concatenation to add the values of the variables. // tests completed // console output Hello! I’m your coding fun fact guide! My name is SK Bot and I live on the web. My favorite programming language is JavaScript.

Also i don’t know if this should be a new Topic but line 14 also

console.log("Hello! I'm your coding fun fact guide!")

const botName = "SK Bot";

const botLocation = "the web"

const favoriteLanguage = "JavaScript"

const botSentence = "My name is " + botName + " and I live on " + botLocation + ".";

console.log(botSentence)

let codingFact;

codingFact = "My favorite programming language is " + favoriteLanguage + ".";

console.log(codingFact)

console.log(codingFact)

codingFact = "The programming language i am learning now is " + favoriteLanguage + ".";

console.log(codingFact)

codingFact = favoriteLanguage + " is a cool language.";

console.log(codingFact)

console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".")
  1. You should assign a value to codingFact for the third time that also contains
favoriteLanguage

, and log it to the console.

Hi @shalom_karr

You are not asked to declare the following variable.

You are not asked to create a variable for user story 8.

Happy coding

Tell us what’s happening:

I Guess it needs its own topic:

  1. You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console. what am i missing?

Your code so far

console.log("Hello! I'm your coding fun fact guide!")
const botName = "SK Bot";
const botLocation = "the web"
const favoriteLanguage = "JavaScript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
let codingFact;
codingFact = "My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact)
console.log(codingFact)
codingFact = "The programming language i am learning now is " + favoriteLanguage + ".";
console.log(codingFact)
codingFact =  favoriteLanguage + " is a cool language.";
console.log(codingFact)
console.log("It was fun sharing these facts with you. Goodbye! - " + botName + " from " + botLocation + ".")

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Hi @shalom_karr

You are not asked to create a variable for user story 9.

Happy coding