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 trialAlisa Hill
316 PointsHaving a hard time passing this task 2.
Not sure what Im doing wrong but I've watched the video several times and Im still lost as to adding the symbol and lastName to the UpperCase. I got the first part but then Im stumped on the second task.
var id = "23188xtr";
var lastName = "Smith";
var userName = id.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>
Steven Parker
231,236 PointsPosting explicit code solutions without explanation is strongly discouraged by Treehouse, and subject to redaction by staff or moderators.
3 Answers
Steven Parker
231,236 PointsHint: You can join strings together using the concatenation operator, which uses the same symbol as addition for numbers ("+").
Cobe Learns
25,333 Pointsyea my bad - sorry :( actually wanted to share link for more info about strings concatenation but forgot - http://javascript.info
Steven Parker
231,236 PointsThat's good but you should also revise your other comment and at least add some description of the code differences.
Alisa Hill
316 PointsThank you Cobe Learns for providing me with some help on that problem. I didn't mean to get you in trouble though. And thanks for the extra links!!
Alisa Hill
316 PointsThank you Cobe Learns for providing me with some help on that problem. I didn't mean to get you in trouble though. And thanks for the extra links!!
Cobe Learns
25,333 PointsCobe Learns
25,333 Points