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

Craig Kempster
Craig Kempster
4,332 Points

Bummer: Make sure you're concatenating `: ` to `lastName` and `role`.

Answers in the forum did not work

let role ='developer'; let role_upper = role.toUpperCase(); works in VS

app.js
let firstName = 'First Name';
let lastName = 'Last Name';
let role = 'developer';

let msg = ( firstName ) + (' ') + ( lastName + ':') + ( role.toUpperCase() );

3 Answers

Craig Kempster
Craig Kempster
4,332 Points

let role ='developer'; let role_upper = role.toUpperCase(); let msg = ( firstName ) + (' ') + ( lastName + ':') + ( role_upper ); Works in Visual Studio Code but fails in TreeHouse Window

This solution does not work for me.

Javier Garduno
Javier Garduno
962 Points

Hi this is the correct answer if needed : all it needed was a space as so >>> ' : ' in string

let msg = ( firstName ) + (' ') + ( lastName + ' : ') + ( role.toUpperCase() );