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 trial

JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

Holidson Lucien
Holidson Lucien
3,632 Points

i'm having a difficult time with this challenge

i can't put the developer word in uppercase

app.js
let firstName= 'Holidson'

let lastName= 'Lucien'

let role = 'developer';



let msg= "Holidson " + "Lucien" +":developer.";

2 Answers

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

Hey 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 :smiley:

Holidson Lucien
Holidson Lucien
3,632 Points

Thank you very much for your help