Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Steven Zhang310 Points
what is the difference between constant and normal variables, and how does a constant work and why use it in the first place. 1.)difference 2.)how does it work 3.)purpose
Josh Keenan19,527 Points
A constant and variable are two different things. A variable you know, it stores a value and can be changed and updated; a constant is a value that should not change.
Both can be used in almost the exact same ways with the only constraint of never being able to change a constant, so you can use it for things you know won't be changing anywhere during your program, that you will still need to use