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 trialYessenia Bojorquez
727 PointsHi, I'm not sure what I'm missing or doing wrong. Can someone advise? Thanks!
my code is attached
let firstName="Yessenia";
let lastName="Bojorquez";
let role = 'developer';
let role = (role.toUppercase);
let msg = firstName + ' ' + lastName + ': ' + role;
2 Answers
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 PointsHi Yessenia,
Your code is almost perfect. I think the first issue you’re running into is two parts. 1) toUpperCase is a method and not a property. You have to invoke it with parens. So it’s toUpperCase(). 2) the “C” in toUpperCase needs to be capitalized. Syntax errors are common for all developers, but toUpperCase() is different from toUppercase.
If you make those changes, you’ll end up getting an error that says something to the extent that the original role variable should not be changed, which means that Treehouse wants you to store ‘developer’ as is in the variable role, while outputting it as ‘DEVELOPER’ only in the string stored in msg.
If you have trouble figuring out that last part, let me know.
Yessenia Bojorquez
727 PointsThanks Brandon! That helped out.