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 trialPhilip Bieni
2,208 PointsWhat does it mean when you submit your work and it tells you task 1 is no longer passing?
The question ask for me to add a #Symbol and lastName in uppercase and I put: "#lastName".toUpperCase and the tells me that task one (var userName = id.toUppercase());" is no longer passing? I need help.
var id = "23188xtr";
var lastName = "Smith";
var userName = id.toUpperCase("23188xtr");
var userName + "#lastName".toUpperCase = "23188XTR#SMITH";
<!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
Steven Parker
231,275 PointsThat usually means you introduced a syntax error.
Since the tasks are re-tested in order, a syntax error will make them all fail, so it will report task 1 first.
In this case, you have an addition operation on the left side of an assignment, which is not allowed. Also remember that variable names should not be put in quotes, a variable should be declared only one time, and the toUpperCase method does not take an argument.