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

asking again for help

asking this question again... i seem to have the concept but something is wrong with the spacing they want it in....

app.js
let firstName = "yob";
let lastName = "cru";
let role = 'developer';
const msg = "yob" + "cru:" 'developer';

you may want to add a space within the quotes after "yob" and after "cru:" like "yob " + "cru: "

oops I only looked at the last line as I thought you were having a formatting issue. Did not look at the challenge. My bad

1 Answer

Hi Yobani!

I think the main objective of these challenges is to demonstrate you know how and why to make use of variables.

This passes all three:

let firstName = 'Yob';
let lastName = 'Cru';
let role = 'developer';

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

I hope that helps.

Stay safe and happy coding!