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 can not convert to Upper-case, I don't know what's happenig. I give up for this.

app.js
let firstName = ("Samuel");
let lastName = ("Bueno");
let role = 'developer';
let msg = {firstName} ${lastName}: ${role};
let msg = 'firstName' 'lastName': role.toUpperCase();

1 Answer

Hey Samuel Bueno, So one of the first issues I see is that you don't need the parentheses around your first and last name when you initiate those variables. A second issue that I see is that in your template literal you are missing a $ in front of the first name variable as well as back-ticks surrounding the whole statement. One last thing is that in your final statement you aren't using the template literal syntax either. You're on the right track, but try the following:

let firstName = 'Samuel';
let lastName = 'Bueno';
let role = 'developer';
let msg = `${firstName} ${lastName}: ${role.toUpperCase()}`;

Let me know if you have any questions.