Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSem van Westen
2,434 PointsStep 3 of the code challenge does not validate correctly
My last name has 2 parts with a space in between. The third exercise of the code challenge requires me to concatenate firstName + ' ' + lastName. The codechecker does not accept this because it does not detect an extra space between the two parts of my last name (the space is embedded in the lastName variable instead of concatenated). When I reduced my last name down to one word, it got through the checker.
Sem van Westen
2,434 PointsIt does not accept:
var firstName = "Sem";
var lastName = "van Westen";
var fullName = firstName + " " + lastName;
It does accept:
var firstName = "Sem";
var lastName = "vanWesten";
var fullName = firstName + " " + lastName;
The treehouse codechecker requires me to concatenate the spaces. It does not allow for spaces to be embedded in the firstName and lastName variables.
William Li
Courses Plus Student 26,868 Pointsit appears that you're right. Let's pm Dave McFarland for a possible change to the grader. Thanks for pointing that out, Sem.
1 Answer
Dave McFarland
Treehouse TeacherYou certainly shouldn't need to change your name to pass our code challenges! I'll update that code challenge.
Thanks for letting me know.
Dave McFarland
Treehouse TeacherHi again Sem van Westen
I've fixed the code challenge. In fact, your name is now immortalized in the programming I created to test this code challenge within the Treehouse application!
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 Pointsand your code please?