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

Totiaunah Millerranzy
Totiaunah Millerranzy
455 Points

Why is this not working, what am I doing wrong?

I'm not understanding what I'm doing wrong.

app.js
let firstName = 'Toti';
let lastName = 'Miller';
let role = 'developer';
let msg = firstName + ' ' + lastName + ':' + role.toUpperCase() + '.';

1 Answer

MD MONIRUZZAMAN
MD MONIRUZZAMAN
6,130 Points
let firstName = 'Toti';
let lastName = 'Miller';
let role = 'developer';
let msg = firstName + ' ' + lastName + ': ' + role.toUpperCase();
console.log(msg);

If you follow the question carefully,they did not ask for Full stop(.).This is why complier does not let you pass.In most cases you have to be precise in your answer. Hopefully you understand . Happy codingπŸ˜ƒ