Javascript Quote by Marijn Haverbeke
““You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp them—two variables can refer to the same value.””
About This Quote
Variables are references that can point to the same data, not isolated containers.
In simple terms: Variables are references, not boxes.
Think of variables as pointers to values.
Themes
Mood
Type
When to use this quote
- teaching programming
- debugging code
- designing APIs
- explaining scope
- learning functional languages
Key Concepts
Practical Applications
- educational material
- code documentation
Questions to Reflect On
- How does treating variables as references affect program reasoning?
- What pitfalls arise when multiple variables share a value?