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 trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Using String Methods

This is making my head hurt

how do you do this

app.js
var id = "23188xtr";
var lastName = "Smith";
var userName = id.toUpperCase();
userName += "#";
index.html
<!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>

3 Answers

Scott Duncan
Scott Duncan
2,287 Points

What is it you want to do Vy?

Based on the challenge:

What you have seems to be correct for the first task (setting username to uppercase version of id variable).

The second task is asking you to append a # to the end of the username variable. So far, userName += "#"; should be correct.

After this, the second task asks you to append the uppercase version of lastname to username. You are missing this. Add this feature and you should complete the challenge.

Scott Duncan
Scott Duncan
2,287 Points

sorry this is the first question I've helped with . I didn't see the view challenge button.

Your there Vy . Just remove the +=