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
Dave Hanna
Courses Plus Student 2,969 PointsWhat is the difference between mutable and immutable?
What is the difference between mutable and immutable? I remember hearing it in the videos, but forgot what they actually meant and where to find them in the course history.
2 Answers
Jhoan Arango
14,575 PointsHello:
- Mutable : Liable to change.
- Immutable : Unable to change.
So vars are mutable because you can changed their values, and constants are immutable, because you can't change their values. Unless you change it manually.
Dave Hanna
Courses Plus Student 2,969 PointsThanks! That helped