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 trialEthan Halfhide
Full Stack JavaScript Techdegree Student 3,886 Pointswhere do I apply the .toUpperCase() method in the problem?
Directly to 'developer' in line 3 or on line 4 as a new line and if so how do I format correctly?
let firstName = "Ethan";
let lastName = "Halfhide";
let role = 'developer';
let msg = firstName + ' ' + lastName + ':' + role + '.';
1 Answer
Rick Gleitz
47,878 PointsHi Ethan,
The .toUpperCase() method gets attached to role in the concatenation you've done. You'll also need to put a space after the colon and get rid of the period concatenation at the end. The answer checker is very precise in this case.
Hope this helps!