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

It keep saying make sure you are concatenating : to last name and role. I am what am I doing wrong? help Please

app.js
let firstName = "Lee";
let lastName = "Samuels";
let role = 'developer';
let stringlMsg = '${Lee} ${Samuels}: ${developer.toUpperCase()}`;

2 Answers

Martin Balon
Martin Balon
43,651 Points

Hi 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()}`;

I just typed it the way you did. Now its saying make sure you are adding one space (' ') between firstName and lastName.

Martin Balon
Martin Balon
43,651 Points

Can you post your code, Lee?

I posted the code

You also have a single quote instead of a back tick in your stringlMsg variable