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 trialBen Mohammad
5,659 PointsJavascript Jungle oh to be lost here is dreadful.
if i reasssisgn the toUpperCase() again it stilll dont work or is there something else wrong with it ? any hints??
var id = "23188xtr";
var lastName = "Smith";
var userName = lastName.toUpperCase();
var username = id.toUpperCase()+ "#" + lastName.toUpperCase();
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script src="app.js"></script>
</body>
</html>
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Your main problem here is a typo. Seriously. The code for your second "username" would be perfect if it were var userName
instead of var username
. Note the capitalization. When you fix that, you should probably erase the line above it, as it is not needed
var userName = id.toUpperCase()+ "#" + lastName.toUpperCase();