Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
I tried everything and still doesn`t work. Someone has an idea?
let firstName = ("Amila"); let lastName = ("Duranovic"); let role = ('developer'); let msg = (firstName + ' ' + lastName + ':' + role + '.'); msg = role.toUpperCase();
Martin JonesFront End Web Development Techdegree Graduate 42,781 Points
You could try the code below, the main change here is that I have changed the message, to be equal to the message in uppercase, this will change the message to
In your code example, it would set the message to be just
DEVELOPER as you are only applying uppercase to the role.
let firstName = ("Amila"); let lastName = ("Duranovic"); let role = ('developer'); let msg = (firstName + ' ' + lastName + ':' + role + '.'); msg = msg.toUpperCase();
Hope this helps, please note my membership is paused at the moment, I cannot see the exact question, so I am making some presumptions that the message should be a combination of the variables you set,