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 trialRoyce Nmorka
193 PointsBummer: Use the `.toUpperCase()` method to convert the `role` string to all upper-case.
const msg = firstName + " " + lastName + ":" + role.toUpperCase() + ".";
const firstName = "Royce";
const lastName = "Nmorka";
const role = "developer";
//const shout = role.toUpperCase();
const msg = firstName + " " + lastName + ":" + role.toUpperCase() + ".";
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Royce Nmorka
For the most part, you do have it correct. Challenges and the instructions are very specific, and often, the task will not pass if one little thing is off.
The Bummer message is very misleading here. All you need to fix up are two things:
- There needs to be a space between the colon and the role (as the example show), so just add a space after the colon.
- The task will not accept a period at the end. The instructions don't ask for it and the example doesn't have one, so putting one there causes the task to fail.
So, while this will work just fine:
const msg = firstName + " " + lastName + ":" + role.toUpperCase() + ".";
It needs to be:
const msg = firstName + " " + lastName + ": " + role.toUpperCase();
Nice work! :)