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 trialAlexandru Pescaru
6,410 Pointshelp with a task please
let firstName = 'Carlos'; let lastName = 'Salgado'; const role = 'developer' ; const msg = firstName + ' ' + lastName + ': ' + role; ('developer'word.toUpperCase() );
what shell i do to make developer all in uppercases?
1 Answer
Alexandru Pescaru
6,410 Pointsthx!
Matt DADDY
2,890 PointsMatt DADDY
2,890 PointsHey there,
I think you meant to post in JavaScript not Java :)
However a few things,
const msg = firstName + ' ' + lastName + ': ' + role
You may want to add a space in the '' between first and last name.
To get developer to uppercase you'll reference the variable
role
and use thetoUpperCase()
method.role.toUpperCase()
Complete Example:
You'll also learn some fancy new string concatenation in the future which will make things easier. :)