Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

Step 8 for Building a Trivia Bot will not let me pass. It keeps saying i need to log “My name is (botName) and i live on (botLocation).” and add the variables to the string. My output gives me the exact sentence i want but it still says it’s wrong.

Your code so far

console.log("Hello! I'm your coding fun fact guide!");
let botName
botName = "professorBot"
console.log(botName)
let botLocation
botLocation = "theMilkyWay"
console.log(botLocation)
let favoriteLanguage
favoriteLanguage = "javaScript"
console.log(favoriteLanguage)
console.log("My name is " + botName + " and I live on " + botLocation + ".")





Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 OPR/129.0.0.0

Challenge Information:

Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

remove the logs that they didn’t ask for. That may help.

1 Like

Your code has unnecessary logs.

console.log(botName)

console.log(botLocation)

console.log(favoriteLanguage)

Please remove these.

1 Like