Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot

Tell us what’s happening:

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

Thanks! I have corrected the after botName variable and step 4 requirements, but step 8, 14 and 15 still returning me an error… =(

Review each user story carefully and make sure it’s implemented correctly in the code

dude…… seriously??? :neutral_face:

my code:
console.log("My name is " + botName + "and I live on " + botLocation + ".");

can’t see what is wrong here

there is no space after botName

Spaces removed before and after variables. I really guess this is a bug.

there is no bug in this challenge as far as we are aware, please post your updated code so we can double check

sure! updated code:

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

you still do not have a space, look at the sentence in the console

My name is Thiagoand I live on Brasil.

space is missing

finally step 8 worked, thank you! i’ll figure out what is still wrong with 14 and 15 tho.

thanks!

check how many times you are asked to give a new value to codingFact

1 Like

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.

1 Like

Yep, it was missing one more time, but I have added another one just like the lines above, logged it and still returning error… i’ll redo

This is kinda weird as well:

WITH lines 25 and 26

WITHOUT lines 25 and 26, last clg not changed

my code:

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

review the user story again please, this should not be a codingFact

user story 4, this one:
image

see, as I already said earlier, it only says to log the string, you should not assign it to codingFact

1 Like

thanks. I guess I just can’t read. xD