Welcome to the Treehouse Community
Looking to learn something new?
Martin BornmanCourses Plus Student 12,662 Points
var id = "23188xtr"; var lastName = "Smith"; var userName = '# ' + lastName.toUpperCase();
Tobias Helmrich31,602 Points
I guess you're talking about the second task of the challenge. If so, your code has a few problems. Firstly you removed the uppercase version of id but you need the id as well for the second task. Then you should concatenate the variable id in uppercase with a # symbol and the lastName variable in uppercase as well. Like so:
var id = "23188xtr"; var lastName = "Smith"; var userName = id.toUpperCase() + "#" + lastName.toUpperCase();
Also note that you shouldn't write a space after the # symbol.
I hope that helps, if you have further questions feel free to ask! :)
Keli'i Martin8,227 Points
It looks like in task 1, you were to assign an all uppercase version of
id to the
userName variable. Then, in task 2, you need to use string concatenation to append a "#" and the all uppercase version of
lastName to the end of what you did in task 1. In other words, your variable assignment should look like this:
var userName = id.toUpperCase() + "#" + lastName.toUpperCase();
Hope this helps!