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 trialKevin Barrett
1,019 PointsI'm not sure but I think this could be a bug. I am getting a "PASSING" result for Task 1 but not Task 2.
After completing Task ! with a PASS, i am getting a message stating that Task ! is no longer correct after completing Task 2. Not exactly sure where I'm making the error. I checked console and make code is now returning with the value in all caps.
Any help would be appreciated! Thanks!
var id = "23188xtr" + "#";
var lastName = "Smith";
var userName = id + lastName;
userName.toUpperCase();
console.log(userName)
<!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>
2 Answers
Steven Parker
231,236 PointsI don't think the challenge is expecting you to change the code that was provided. Try solving the challenge with only new code.
Ben Reynolds
35,170 PointsCan you share the code you used for task 1? It looks like you've modified the id variable (which could be why it says task 1 no longer passes), but all the new code for both steps can be done on the userName variable.