Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics Working with Strings Combine and Manipulate Strings

asia flowers
asia flowers
2,260 Points

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

Bramyn Payne
seal-mask
.a{fill-rule:evenodd;}techdegree
Bramyn Payne
Full Stack JavaScript Techdegree Student 19,495 Points

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 + ': ' +

asia flowers
asia flowers
2,260 Points

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.

asia flowers
asia flowers
2,260 Points

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