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 trialKwame Afrifa Obeng -Ofori
2,238 Pointsdont know what im doing wrong
let firstName = 'b'
let lastName = 'n'
let role = 'developer';
let msg = firstName + ' ' + lastName + ':' + role + '.'
let roleUpper = role.toUpperCase() ;
msg = firstName + ' ' + lastName + ':' + roleUpper + '.'
1 Answer
Jose Lievano
4,909 PointsWhen you declare the msg variable in the 4 line, you put ":" but you forgot to add the space, so it should be: ": "
Also, is possible to just change the msg to:
let msg = firstName + " " + lastName + ": " + role.toUpperCase();
Kwame Afrifa Obeng -Ofori
2,238 PointsKwame Afrifa Obeng -Ofori
2,238 Pointshi I just did it and I got it right. Can you please explain why