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

not sure what im doing wrong?

app.js
let firstName = "firstName";
let lastName = "lastName";
let role = 'developer';
let msg = firstName + ' ' + lastName + ': ' + role
let msg = carlos + ' ' + salgado + ': ' + role.touppercase();

I totally agree with joelearner. Just wanna give some extra explanation. If you assign a value to "msg" twice. It will be overwritten by the 2nd one. Also make sure you don't forget the capital letters since Javascript is case sensitive. In your case "touppercase()" shoulde be "toUpperCase()".

1 Answer

Hi Luis,

You almost have the challenge completed. The only problem you're running into is assigning a value to the msg variable twice.

So, for the third task, append the toUpperCase() to end of the role variable on the same line.

Your revised code should look something like this:

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

Cheers!