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

am I the only one with this problem?

will not let me proceed, it says I need to use .toUpperCase() method. Very frustrating

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

I have applied the same code on codpen, and it went well as expected. somehow on here, I'm just stuck! maybe its time to unsubscribe to treehouse.

1 Answer

Heidi Fryzell
seal-mask
MOD
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 25,178 Points

Hi James,

You are very close. The challenges just want very specific answers. Your code does work. But the instructions say this:

Finally, convert the string stored in role to uppercase letters. The final msg string should look similar to this: "Carlos Salgado: DEVELOPER".

Which means this is what they literally want to see for output:

Carlos Salgado: DEVELOPER

In your code you had a "." at the end and you didn't have a space after the ":".

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

Hope this helps and happy coding.

Thanks!