Lesson 12 of 20 · about 15 min
Mutation and state
Some values change over time. State makes programs remember things, like a balance or a score, but it also means the same call can give different answers. Understanding identity vs equality keeps mutation safe.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- State
- Identity vs equality
- Pure vs impure
Free to try in F03 Programming 2: Abstraction & Recursion:
The first 3 lessons of every course are free, no account needed.