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 trialasia flowers
2,496 Pointsthis 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
let firstName = 'asia';
let lastName = 'flowers';
let role = 'developer';
const msg = 'asia' + ' ' + 'flowers' + ':' + 'developer.toUpperCase()';
2 Answers
Bramyn Payne
19,589 PointsHi 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 + ': ' +
Bramyn Payne
19,589 PointsHey Asia,
When you tried it that way did you make sure to exclude quotes around firstName
, lastName
, and role.toUpperCase()
?
asia flowers
2,496 Pointsooooh i see. i just tried this and it worked thank you!! i was stuck here for hours lol
asia flowers
2,496 Pointsasia flowers
2,496 Pointsthank 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.