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 trialAbdulloh Ismatullaev
1,765 Pointslet firstName = 'Abdulloh'; let lastName = 'Ismatullaev'; let role = 'developer'; let msg = fisrtName + ' ' + lastName:
I dont really know what is wrong here
let firstName = 'Abdulloh';
let lastName = 'Ismatullaev';
let role = 'developer';
let msg = fisrtName + ' ' + lastName: + ' ' + role '.';
3 Answers
Gergely Bocz
14,244 PointsAnd 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);
Michael Kobela
Full Stack JavaScript Techdegree Graduate 19,570 PointsThe + before the '.' was missing.
let msg = fisrtName + ' ' + lastName: + ' ' + role + '.';
Abdulloh Ismatullaev
1,765 PointsThank you guys for support I really appreciate that !