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 trialHolidson Lucien
3,632 Pointsi'm having a difficult time with this challenge
i can't put the developer word in uppercase
let firstName= 'Holidson'
let lastName= 'Lucien'
let role = 'developer';
let msg= "Holidson " + "Lucien" +":developer.";
2 Answers
Travis Alstrand
Treehouse Project ReviewerHey Holidson Lucien !
For this challenge, we should be utilizing those variables that we have created up above like so...
let msg = firstName + " " + lastName + ": " + role;
To make this uppercase we can create yet another variable underneath our role
variable. You can name it anything you like of course...
const upperRole = role.toUpperCase();
Then, we can use this upperRole
(or whatever you named it) variable in the msg
instead of role
.
After this challenge you'll learn about template literals which will make a lot of this much easier
Holidson Lucien
3,632 PointsThank you very much for your help
Travis Alstrand
Treehouse Project ReviewerYou're welcome!