console.log(“Hello! I’m your coding fun fact guide!”);
let botName = “Kolade”;
console.log(botName);
let botLocation = “Nigeria”;
console.log(botLocation);
let favoriteLanguage = “javascript”;
console.log(favoriteLanguage);
console.log("My name is " + botName + " and I live on " + botLocation + “.” ) ;
Is there anything wrong with the code above? Despite it being correct and displaying the exact result expected in the result bar, it’s still displaying the error checks.
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Kolade";
console.log(botName);
let botLocation = "Nigeria";
console.log(botLocation);
let favoriteLanguage = "javascript";
console.log(favoriteLanguage);
console.log("My name is " + botName + " and I live on " + botLocation + "." ) ;
console.log("My favorite programming language is " + favoriteLanguage + ".");
let codingFact = "I love to work on " + favoriteLanguage + ".";
console.log(codingFact);
codingFact = "Coding with " + favoriteLanguage + " is fun.";
console.log(codingFact);
codingFact = "I am learning " + favoriteLanguage + " fast.";
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/147.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
These are the error messages. I corrected it many times but these keep popping up. I feel like if there is any error detected, i should be corrected so i can move on with the class. I feel stuck right now. Thank you for your attention.
8. You should log to the console "My name is (botName) and I live on (botLocation)." and add the variables to the string.
9. You should log to the console "My favorite programming language is (favoriteLanguage)." and add the variable to the string.
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)." and add the values of the variables.
these are the first 3 user stories, can you tell me which lines match each one?
You should log "Hello! I'm your coding fun fact guide!" to the console as a greeting message to the user.
You should create three variables: botName, botLocation, and favoriteLanguage, that store the bot’s name, where it’s from, and its favorite coding language, respectively.
You should log "My name is (botName) and I live on (botLocation)." to the console.