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

let firstName = 'Abdulloh'; let lastName = 'Ismatullaev'; let role = 'developer'; let msg = fisrtName + ' ' + lastName:

I dont really know what is wrong here

app.js
let firstName = 'Abdulloh';
let lastName = 'Ismatullaev';
let role = 'developer';
let msg = fisrtName + ' ' + lastName: + ' ' + role '.';

3 Answers

Gergely Bocz
Gergely Bocz
14,244 Points

And there is a typo with firstName: You typed fisrtName in msg. Also, the colon after lastName should be inside the quotation mark, like this: ': '.

This is the final version of the code that runs. I have also logged it to the console, so that you can see the result.

let firstName = 'Abdulloh';
let lastName = 'Ismatullaev';
let role = 'developer';
let msg = firstName + ' ' + lastName + ': ' + role + '.';
console.log(msg);

The + before the '.' was missing.

let msg = fisrtName + ' ' + lastName: + ' ' + role + '.';

Thank you guys for support I really appreciate that !