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 trialAndres Deidan
Courses Plus Student 96 PointsWhat is a constant
What is a constant
// Enter your code below
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHI Andres
I strongly recommend going over and reviewing the video that introduces and explains what a constant is and how it is used. It is a long video and does cover it in great detail. After reviewing, I'm sure you'll be able to complete the challenge.
:)
Alexander Davison
65,469 PointsA constant is a variable with an unchangeable value. Its value is fixed. It's better to use constants when possible, because it ensures that you won't accidentally modify the value contained, but more often you use variables, which have a changeable value.