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 trialJa'Quan Thompson
Front End Web Development Techdegree Graduate 15,834 PointsI tried adding the .toUppercase(); in the role string but that doesn't work either.
Im beyond stuck on this one. I went back through the videos and I still cant figure this one out. advice greatly appreci
let firstName ="JaQuan";
let lastName ="Thompson";
let role = "developer";
let msg = "JaQuan " + "Thompson: " + role;
3 Answers
Xavier Ritch
11,099 PointsHey. So you want to insert the variable names that you created above into your newly created msg variable and then concatenate them together instead of using the actual string values of them. So like this:
let msg = firstName + ' ' + lastName + ': ' + role.toUpperCase();
Ja'Quan Thompson
Front End Web Development Techdegree Graduate 15,834 PointsI tried it but for some reason I couldn't get it to work.
Ja'Quan Thompson
Front End Web Development Techdegree Graduate 15,834 PointsActually you were right! I didnt make the C in case capital! thank you!
Xavier Ritch
11,099 Pointscheers