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 trialLaura Buitrago
14,618 Pointswondering why Task 1 is no longer passing when It went through the first time...
var id = "23188xtr";
var lastName = "Smith";
var userName = id.toUpperCase();
userName += "#" +=lastName.toUpperCase();
any ideas why this isn't working?
1 Answer
Abe Layee
8,378 PointsYour mistake is from your last line of code. You can't have this userName += "#" +=lastName.toUpperCase();
var id = "23188xtr";
var lastName = "Smith";
var userName = id.toUpperCase();
userName += "#" +=lastName.toUpperCase(); // you can't have this like this. This here is an a
You want something like this
var id = "23188xtr";
var lastName = "Smith";
userName += id.toUpperCase() + "#" + lastName.toUpperCase(). // you want both id and lastName to have the UpperCase() method and hash in the middle in order to get what the challenge is asking for.