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 trialSean Barry
4,264 Points# symbol? Where and when was this symbol covered?
What video do I need to watch to understand what the # symbol does. I dont remember Dave going over it at all
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>
1 Answer
Ryan S
27,276 PointsHi Sean,
The '#' is not a special javascript symbol. It is a string character, just like any other letter. The challenge wants you to concatenate a string and part of that string will be a '#' symbol.
Good luck.
Ryan S
27,276 PointsRyan S
27,276 PointsI should add though, that the '#' is important in HTML and CSS when selecting id attributes, and if you are using jQuery, for example, you are able to target them with javascript. So in that case the '#' symbol will present itself as a special symbol in javascript, but only because of the relation to the id attributes.