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 trialCorey Killingsworth
Front End Web Development Techdegree Student 5,568 PointsMake sure you're adding one space (' ') between `firstName` and `lastName`.
I keep getting the error Make sure you're adding one space (' ') between 'firstName' and 'lastName'.
let firstName = ("Corey");
let lastName = ("Killingsworth");
let role = 'developer';
let msg = (firstName + ' ' + lastName + ':' + role + '.');
msg = role.toUpperCase();
michael mccaughan
19,353 PointsThe error message you are receiving is slightly misleading. You need to add a space after the colon in line 4. ex ': '
michael mccaughan
19,353 PointsActually i was wrong sorry just ran the challenge myself. Your problem is line 5. Hint it shouldn't exist.
4 Answers
Corey Killingsworth
Front End Web Development Techdegree Student 5,568 Pointslet msg = firstName +' '+ lastName +': '+ role.toUpperCase();
THIS IS THE CORRECT ANSWER!!
Chaerul Salam
2,763 PointsThank you for your help, Corey !
Javier Garduno
962 PointsTHIS IS THE CORRECT ANSWERRRR !!!
let msg = firstName + ' ' + lastName + ' : ' + role;
Corey Killingsworth
Front End Web Development Techdegree Student 5,568 PointsActually spoke to soon... still a no go
Xolani Mdluli
2,099 PointsI keep getting that error message as well. Isn't there anyone that can assist
Corey Killingsworth
Front End Web Development Techdegree Student 5,568 PointsCorey Killingsworth
Front End Web Development Techdegree Student 5,568 PointsThe goal here is to make the variable role all uppercase.. I believe I have done that. I also believe the ' ' within the let msg should accomplish creating space between first name and last name