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

Its telling me to add space now? Help

app.js
let firstName = 'Lee';
let lastName = 'Samuels';
let role = 'developer';
let msg = '${Lee} ${Samuels}: ${developer.toUpperCase()}';
Brian Bochicchio
Brian Bochicchio
12,272 Points

Hi Lee,

I think the error message might be misleading. Looking at the msg variable declaration, you are using single quotes ' instead of ` back-ticks. Also look at what you have in the curly braces {} should that be your values? Or the variable names?

I suspect once you address those, it will work or you will get a more helpful message.

1 Answer

Mark Casavantes
Mark Casavantes
2,880 Points

Hello Lee,

Change your line 4 to: let msg = ${firstName} ${lastName}: ${role.toUpperCase()};

Use console.log to get insight into your code. console.log(msg);

May I recommend codepen.io. It is free to run your code. After you write your code, if you see a red circle with an explaniation mark, you have an error. Click on it and it will tell you the line and space of your error.

I hope this helps you.