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
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
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)
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 + ".")
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