Step 8 is telling me to do what I’ve done already ?
Not sure if its something I’m doing wrong if anyone can help or give me a tip.
Your code so far
console.log("Hello! I'm your coding fun fact guide!")
let botName
let botLocation
let favoriteLanguage
botName = "Brain"
botLocation = "The Mind"
favoriteLanguage = "Js at the moment"
console.log("My name is " + botName + " and I live on " + botLocation + ".")
console.log("My favorite programming language is " + favoriteLanguage + ".")
let codingFact
codingFact = "Python is harder to me then " + favoriteLanguage + "."
console.log(codingFact)
codingFact = "Css is also a bit harder then " + favoriteLanguage
console.log(codingFact)
codingFact = "All together after years of learning off and on, I think I'm starting to like " + 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; rv:137.0) Gecko/20100101 Firefox/137.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
I wouldn’t really call declaring variables up front non-standard, sure in this case, it looks a little unnecessary. But declaring all variable at the top and then assigning to them later isn’t that uncommon.
I mean it should pass, and we already have a test that checks for the variable declaration, so it does not seem necessary as part of the value assign checking test.
I’m not sure if that is true, considering multiple reassignments are happening after the declaration. Sure, if it was just a single declaration and assignment, it would be a little more odd.
In any case, if we did want a single declaration and assignment it should be in the requirements, otherwise it is just valid code we are failing to validate properly.