I’m stuck on step 8, 14 and 15, even though it seems to be made correctly… Is there a bug on the test? Thanks!
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Thiago ";
let botLocation = "Brasil";
let favoriteLanguage = "JavasCript";
console.log("My name is " + botName + "and I live on " + botLocation + ".");
let codingFact =
"My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact);
codingFact = "I am studiyng " + favoriteLanguage + " right now.";
console.log(codingFact);
codingFact =
"I'd love to share some more detais about my " +
favoriteLanguage +
" carreer afterwards.";
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/144.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
don’t put a space in the name string, it’s only going to confuse you because if you need to write My name is <botName> and... then you need to still put the space after <botName>, meaning double space
this is not a codingFact, note user story 4 that only says to log
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Thiago";
let botLocation = "Brasil";
let favoriteLanguage = "JavaScript";
console.log("My name is "+botName+"and I live on "+botLocation+".");
console.log("My favorite programming language is "+favoriteLanguage+".");
let codingFact = "I am studiyng "+favoriteLanguage+" right now.";
console.log(codingFact);
codingFact =
"I'd love to share some more detais about my " +
favoriteLanguage +
" carreer afterwards.";
console.log(codingFact);
console.log("It was fun sharing these facts with you. Goodbye! - "+botName+"from "+botLocation+".");
Yes, seriously! This is exactly what I would do to find the problem.
Please note to review the User Stories themselves, and not just the tests.
If you had reviewed user story 4 and compared it to the code, you would have found this.
We don’t have any special skill to find typos like this other than carefully reviewing the code (and output) and comparing it to what the User Story asks for.
console.log("Hello! I'm your coding fun fact guide!");
let botName = "Thiago";
let botLocation = "Brasil";
let favoriteLanguage = "JavaScript";
console.log("My name is " + botName + " and I live on " + botLocation + ".");
// 'codingFact' declaration
let codingFact;
// first value assignment + log
codingFact = "My favorite programming language is " + favoriteLanguage + ".";
console.log(codingFact);
// second value assignment + log
codingFact = "I am studiyng " + favoriteLanguage + " right now.";
console.log(codingFact);
// third value assignment + log
codingFact = "I'd love to share some more detais about my " + favoriteLanguage + " carreer afterwards.";
console.log(codingFact);
// WITHOUT test assignment
console.log("It was fun sharing these facts with you. Goodbye! - "+ botName +" from " + botLocation + ".");