Tell us what’s happening:
It is saying that step 8,9 and 14, 15 are wrong but I am getting the correct result. Did I concat wrong?
Your code so far
console.log("Hello! I'm your coding fun fact guide!");
let botName;
botName = "Sam";
let botLocation;
botLocation = "Planet Earth";
let favoriteLanguage;
favoriteLanguage = "JavaScript";
console.log("My name is" + " " + botName + " " + "and I live on" + " " + botLocation + ".");
console.log("My favorite programming language is" + " " + favoriteLanguage + ".");
let codingFact;
codingFact = "Did you know that" + " " + favoriteLanguage + " " + "is the most popular language to code?";
console.log(codingFact);
codingFact = "Did you know that" + " " + favoriteLanguage + " " + "is super easy to learn?";
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Challenge Information:
Build a JavaScript Trivia Bot - Build a JavaScript Trivia Bot
It seems like the test is expecting the spaces to be part of the text, not separate concatenated spaces. Edit: I think it is only an issue with the second and third console.log tests.
console.log("My name is" + " " + botName + " " + "and I live on" + " " + botLocation + ".");
console.log("My favorite programming language is" + " " + favoriteLanguage + ".");
You should assign a value to codingFact for the third time that also contains favoriteLanguage, and log it to the console.
Did you do this 3 times?
Seeing as it isn’t very clear why the tests fail. It should allow for it, or the requirements should be updated.
opened 07:02PM - 19 May 25 UTC
scope: curriculum
status: waiting triage
full stack cert
### Describe the Issue
The tests expect spaces in the sentence to be part of th… e text, not separately concatenated spaces. The requirements should say so, or the test should allow the format:
```js
console.log("My favorite programming language is" + " " + favoriteLanguage + ".");
```
I think it is only an issue with the strings directly logged and not the assigned strings.
https://github.com/freeCodeCamp/freeCodeCamp/blob/9267a8b3a1be34fa2e03b4765eb74ec9d30c0115/curriculum/challenges/english/25-front-end-development/lab-javascript-trivia-bot/66ed41f912d0bb1dc62da5dd.md?plain=1#L70-L84
### Affected Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-javascript-trivia-bot/lab-javascript-trivia-bot
### Your code
```
```
### Expected behavior
Allow spaces to be concatenated to the string in the console.log tests, or update requirements.
### Screenshots
_No response_
### System
- Device: [e.g. iPhone 6, Laptop]
- OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]
### Additional context
Forum: https://forum.freecodecamp.org/t/build-a-javascript-trivia-bot-build-a-javascript-trivia-bot/747822
skoder
May 20, 2025, 11:20pm
3
I’ll try this, thank you!