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 trialMelvin Toran
Full Stack JavaScript Techdegree Student 647 PointsNeed a little help
var id = "23188xtr"; var lastName = "Smith";
var username
I need a little help understanding this
var id = "23188xtr";
var lastName = "Smith";
var 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>
1 Answer
Stephan Olsen
6,650 PointsYou're given an id variable that represents a string of numbers and lettres. The string type has a method called toUpperCase(), which transform all letters in a string to uppercase letters. You need to assign the id with uppercase letters to the userName variable.
Kevin Lewis
Front End Web Development Techdegree Student 9,667 PointsKevin Lewis
Front End Web Development Techdegree Student 9,667 PointsThis wasn't helpful. You just restated the question without helping us find the answer.