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

What dash symbol# has to do with everything?

How # supposed to be used here?

2 Answers

Erik McClintock
Erik McClintock
45,783 Points

Rustam,

The # symbol in this exercise is nothing to do with syntax or the language itself, it is merely a symbol that they chose to further emphasize the fact that the string for the ID in this particular instance is just that: an ID. There is nothing more to it! They figure somebody's ID might have a # symbol in it, so one has been added to a) extend the flavor of the challenge, and b) give you more practice concatenating things together to form a larger whole.

Erik

Thank you very much Erik! That was really helpful!