Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

Corey Killingsworth
seal-mask
.a{fill-rule:evenodd;}techdegree
Corey Killingsworth
Front End Web Development Techdegree Student 4,751 Points

Make 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'.

app.js
let firstName = ("Corey");
let lastName = ("Killingsworth");
let role = 'developer';
let msg = (firstName + ' ' + lastName + ':' + role + '.');
msg = role.toUpperCase();
Corey Killingsworth
seal-mask
.a{fill-rule:evenodd;}techdegree
Corey Killingsworth
Front End Web Development Techdegree Student 4,751 Points

The 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

michael mccaughan
michael mccaughan
19,353 Points

The error message you are receiving is slightly misleading. You need to add a space after the colon in line 4. ex ': '

michael mccaughan
michael mccaughan
19,353 Points

Actually i was wrong sorry just ran the challenge myself. Your problem is line 5. Hint it shouldn't exist.

3 Answers

Thank you for your help, Corey !

I keep getting that error message as well. Isn't there anyone that can assist