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 tried adding the .toUppercase(); in the role string but that doesn't work either.

Im beyond stuck on this one. I went back through the videos and I still cant figure this one out. advice greatly appreci

app.js
let firstName ="JaQuan";
let lastName ="Thompson";
let role = "developer";



let msg = "JaQuan " + "Thompson: " + role;

3 Answers

Hey. So you want to insert the variable names that you created above into your newly created msg variable and then concatenate them together instead of using the actual string values of them. So like this:

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

I tried it but for some reason I couldn't get it to work.

Actually you were right! I didnt make the C in case capital! thank you!

cheers