I keep getting an error message when i try this (let codingFact =(favoriteLanguage) + " is fun, but hard to learn."
console.log((codingFact) + “.”); console.log shows a error message
Your code so far
console.log("Hello! I'm your coding fun fact guide!")
let botName = "Big Bob"
let botLocation = "first street"
let favoriteLanguage = "javascript"
console.log("My name is " + (botName) + " and I live on " +(botLocation) + ".");
console.log("My favorite programming language is " + (favoriteLanguage) + ".");
let codingFact =(favoriteLanguage) + " is fun, but hard to learn."
console.log((codingFact) + ".");
codingFact = "Learning " + (favoriteLanguage) + " is a easy way to learn codeing."
console.log((codingFact) + ".");
codingFact = "Workin with " + (favoriteLanguage) +" is a good way to learn codeing."
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/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
"It was fun sharing these facts with you. Goodbye! - (botName) from (botLocation)." and add the values of the variables. This is what it want’s me to do. the (-) is in there problem
console.log("Hello! I'm your coding fun fact guide!")
let botName = "Big Bob"
let botLocation = "first street"
let favoriteLanguage = "javascript"
console.log("My name is " + (botName) + " and I live on " +(botLocation) + ".");
console.log("My favorite programming language is " + (favoriteLanguage) + ".");
let codingFact =(favoriteLanguage) + " is fun, but hard to learn."
console.log(codingFact);
codingFact = "Learning " + (favoriteLanguage) + " is a easy way to learn codeing."
console.log(codingFact);
codingFact = "Workin with " + (favoriteLanguage) +" is a good way to learn codeing."
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.
When I change the ( _- ) to a ( + ) i still get a error message. (“It was fun sharing these facts with you. Goodbye! " + botName + " from " + botLocation +”.") but it reads out on the console
the error message i get // running tests
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.