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 trialHarsha Phulwani
6,256 PointsCombine and manipulate strings
let firstName = 'pratit';
let lastName = 'bangdiwala';
let role = 'developer';
let work = role.toUpperCase();
let msg = firstName + ' ' + lastName + ':' + work + '.';
1 Answer
Steven Parker
231,269 PointsYour string doesn't quite conform to the model. It should have a space after the colon, and no punctuation at the end.
Harsha Phulwani
6,256 Pointsyour answer worked perfectly. thank you.
Harsha Phulwani
6,256 PointsHarsha Phulwani
6,256 PointsBummer: Use the
.toUpperCase()
method to convert therole
string to all upper-case.