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 trial

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 5,568 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 5,568 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

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

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

4 Answers

Thank you for your help, Corey !

Javier Garduno
Javier Garduno
962 Points

THIS IS THE CORRECT ANSWERRRR !!!

let msg = firstName + ' ' + lastName + ' : ' + role;

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