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

i cant do the 3d step. please answer me.

app.js
let firstName = "felip";
let lastName ="aaaa" ;
let role = "developer";
let msg = firstName + " " + lastName + " :" + role + "."
role.toUpperCase();

4 Answers

Hey Buddy, so you are on the right track, but the idea here is to use the METHOD of toUpperCase on your role variable.

Like this:

let msg = firstName + ' ' + lastName + ': ' + role.toUpperCase();

thanks a lot i was trying it all day . my braid was melted haha

Anton Alexandru-Razvan
Anton Alexandru-Razvan
7,996 Points

i tried your answer but doesen't work to me..

No worries! The only thing is that you keep on trying! Good luck

where did you found my question? can i find also other people here and questions-answers?

I found your question under Community section. There you can see people asking questions ,and others answering them.

Hey Anton,

I just tested it again, and it works for me.

Here is the full code, have a look, you might have a syntax error somewhere:

let firstName = 'Ian'; let lastName = 'Cahn'; let role = 'developer'; let msg = firstName + ' ' + lastName + ': ' + role.toUpperCase();