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

this is what i have im not sure whats incorrect const msg = 'asia' + ' ' + 'flowers' + ':' + 'developer.toUpperCase()';

it just keeps saying make sure u combine the last name and role

app.js
let firstName = 'asia';
let lastName = 'flowers';
let role = 'developer';
const msg = 'asia' + ' ' + 'flowers' + ':' + 'developer.toUpperCase()';

2 Answers

Hi Asia,

The goal of this challenge is to use the variable names. You are currently using the values that are stored in them which would output correctly. However, it does not meet the challenge requirements.

For example, you use 'asia', but instead it is looking for firstName.

Also, pay attention to the format it is looking for. It wants a space after the colon. You have + ':' +, but it should be + ': ' +

thank you. I dont think thats the problem because on task two its telling me it is correct with asia and flowers. however i tried your suggestion and its telling me this is incorrect still. i also tried it my way with the space after the colon and its still incorrect. im not sure what im missing ive rewatched the videos it appears im doing it right.

Hey Asia,

When you tried it that way did you make sure to exclude quotes around firstName, lastName, and role.toUpperCase()?

ooooh i see. i just tried this and it worked thank you!! i was stuck here for hours lol