GLOSSARY · A WORD, UNPACKED
state
the information a program keeps that can affect what happens next.
A little more detail
A counter’s current number, a form’s input, and a selected tab are state. Decide who owns each piece and when it can change. A closure can keep private state between calls, while an instance can keep it in fields.
See it in practice
These lessons pair the idea with examples you can change and run.