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 trialLee Samuels
678 PointsIt keep saying make sure you are concatenating : to last name and role. I am what am I doing wrong? help Please
let firstName = "Lee";
let lastName = "Samuels";
let role = 'developer';
let stringlMsg = '${Lee} ${Samuels}: ${developer.toUpperCase()}`;
2 Answers
Martin Balon
43,651 PointsHi Lee,
there are few problems with your code. First you you have to pass variable name not the string value. Your variables already holds the values you assigned to them earlier. Also you are missing closing curly bracket and have a dot at the end of the sentence. Look at the code below and see the difference.
let firstName = 'John';
let lastName = 'Rambo';
let role = 'developer';
let msg = `${firstName} ${lastName}: ${role.toUpperCase()}`;
Thomas Davidson
7,243 PointsYou also have a single quote instead of a back tick in your stringlMsg variable
Lee Samuels
678 PointsLee Samuels
678 PointsI just typed it the way you did. Now its saying make sure you are adding one space (' ') between firstName and lastName.
Martin Balon
43,651 PointsMartin Balon
43,651 PointsCan you post your code, Lee?
Lee Samuels
678 PointsLee Samuels
678 PointsI posted the code