If you tried to assign any different value to TAX_RATE…
““If you tried to assign any different value to TAX_RATE after that first declaration, your program would reject the change (and in strict mode, fail with an error — see “Strict Mode” in Chapter 2 ).””
About This Quote
This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.
Changing a constant after its initial declaration is prohibited; strict mode enforces this rule.
In simple terms: Constants cannot be altered; strict mode blocks changes.
Respect immutability in code.
Themes
Mood
Type
When to use this quote
- API design
- library development
- education
- team coding standards
Key Concepts
Questions to Reflect On
- When is it appropriate to relax immutability?
- How do developers handle legacy code needing changes?
Strict mode may be too restrictive for some use cases.