---
title: "Meaning & Key Takeaway of: If you tried to assign any different…"
description: "\"“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 wi..."
image: "https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg"
---

#  If you tried to assign any different value to TAX\_RATE…

![“If you tried to assign any different value to TAX&#95;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 ).” quote by Kyle Simpson](https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg)   [Download](https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg) [Open image](https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg)

> ““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 ).””

Kyle Simpson

## 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.

Key Takeaway

Respect immutability in code.

Themes

programming constants strict mode error handling software development

Mood

technical cautious

Type

Change:1 Reject Change:1 Error Strict:1 Change Strict:1 Strict Mode:1 Program Reject:1

When to use this quote

- API design
- library development
- education
- team coding standards

Key Concepts

computer science best practices syntax rules debugging

Questions to Reflect On

- When is it appropriate to relax immutability?
- How do developers handle legacy code needing changes?

A Different Perspective

Strict mode may be too restrictive for some use cases.

★ ★ ★ ★ ★   No ratings yet

[Change](https://sms4smile.com/quotes/about/change/)

## Related quotes

> [I think people do want change, but we want to make sure that the change will actually help people. And that's why I reject…](https://sms4smile.com/quotes/hillary-clinton/i-think-people-do-want-change-but-we-want-to-make-sure-that-the/)

[Hillary Clinton](https://sms4smile.com/quotes/author/hillary-clinton/)

> [Irish research will contribute to global progress and have the potential to help all countries realise the potential of their land sectors in addressing…](https://sms4smile.com/quotes/enda-kenny/irish-research-will-contribute-to-global-progress-and-have-the/)

[Enda Kenny](https://sms4smile.com/quotes/author/enda-kenny/)

> [You practice mindfulness, on the one hand, to be calm and peaceful. On the other hand, as you practice mindfulness and live a life…](https://sms4smile.com/quotes/anonymous/you-practice-mindfulness-on-the-one-hand-to-be-calm-and-peaceful-on/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [“After the funeral, my life changed. I felt as if time were suddenly precious, water going down an open drain, and I could not…](https://sms4smile.com/quotes/mitch-albom/after-the-funeral-my-life-changed-i-felt-as-if-time-were-suddenly/)

[Mitch Albom](https://sms4smile.com/quotes/author/mitch-albom/)

> [The biggest change for me as a mom was realizing I needed to put someone else before me. Now the hardest part about the…](https://sms4smile.com/quotes/kim-alexis/the-biggest-change-for-me-as-a-mom-was-realizing-i-needed-to-put/)

[Kim Alexis](https://sms4smile.com/quotes/author/kim-alexis/)

> [“Stay focused on bringing people together and more on positive messaging so that you can be the change you wish to see in the…](https://sms4smile.com/quotes/germany-kent/stay-focused-on-bringing-people-together-and-more-on-positive/)

[Germany Kent](https://sms4smile.com/quotes/author/germany-kent/)

> [I hope I continue to evolve.](https://sms4smile.com/quotes/charlotte-flair/i-hope-i-continue-to-evolve/)

[Charlotte Flair](https://sms4smile.com/quotes/author/charlotte-flair/)

> [Your world will change whether or not you choose to change, but you have the power to choose it's direction.](https://sms4smile.com/quotes/napoleon-hill/your-world-will-change-whether-or-not-you-choose-to-change-but-you/)

[Napoleon Hill](https://sms4smile.com/quotes/author/napoleon-hill/)

> [When you walk down the street of Kabul your values for life changes, they do change.](https://sms4smile.com/quotes/marco-pierre-white/when-you-walk-down-the-street-of-kabul-your-values-for-life-changes/)

[Marco Pierre White](https://sms4smile.com/quotes/author/marco-pierre-white/)

> [If my campaign is not in the debate, we will not be talking about how we really fix this problem of endless and expanding…](https://sms4smile.com/quotes/jill-stein/if-my-campaign-is-not-in-the-debate-we-will-not-be-talking-about-how/)

[Jill Stein](https://sms4smile.com/quotes/author/jill-stein/)

> [Nobody can tell me that no changes are necessary in Washington.](https://sms4smile.com/quotes/william-weld/nobody-can-tell-me-that-no-changes-are-necessary-in-washington/)

[William Weld](https://sms4smile.com/quotes/author/william-weld/)

> [“…progress isn't necessarily about change but about things turning out as we want them to”](https://sms4smile.com/quotes/phil-hogan/progress-isn-t-necessarily-about-change-but-about-things-turning-out/)

Phil Hogan

> [I can't believe that I'm sitting in meetings with Steven Spielberg, Tom Hanks, and Annette Bening. I want to take on that responsibility to…](https://sms4smile.com/quotes/roger-ross-williams/i-can-t-believe-that-i-m-sitting-in-meetings-with-steven-spielberg/)

[Roger Ross Williams](https://sms4smile.com/quotes/author/roger-ross-williams/)

> [Life is full of change. That's how we learn and grow.](https://sms4smile.com/quotes/anonymous/life-is-full-of-change-that-s-how-we-learn-and-grow/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Only within yourself exists the other reality for which you long. I can give you nothing that has not already its being within yourself.…](https://sms4smile.com/quotes/hermann-hesse/only-within-yourself-exists-the-other-reality-for-which-you-long-i/)

[Hermann Hesse](https://sms4smile.com/quotes/author/hermann-hesse/)

## More by Kyle Simpson

> [“The nail in search of a hammer had found its match. Flash”](https://sms4smile.com/quotes/kyle-simpson/the-nail-in-search-of-a-hammer-had-found-its-match-flash/)

Kyle Simpson

Explore all 2 Kyle Simpson quotes

## More Change quotes

> [Only within yourself exists the other reality for which you long. I can give you nothing that has not already its being within yourself.…](https://sms4smile.com/quotes/hermann-hesse/only-within-yourself-exists-the-other-reality-for-which-you-long-i/)

[Hermann Hesse](https://sms4smile.com/quotes/author/hermann-hesse/)

> [Life is full of change. That's how we learn and grow.](https://sms4smile.com/quotes/anonymous/life-is-full-of-change-that-s-how-we-learn-and-grow/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [I can't believe that I'm sitting in meetings with Steven Spielberg, Tom Hanks, and Annette Bening. I want to take on that responsibility to…](https://sms4smile.com/quotes/roger-ross-williams/i-can-t-believe-that-i-m-sitting-in-meetings-with-steven-spielberg/)

[Roger Ross Williams](https://sms4smile.com/quotes/author/roger-ross-williams/)

> [“…progress isn't necessarily about change but about things turning out as we want them to”](https://sms4smile.com/quotes/phil-hogan/progress-isn-t-necessarily-about-change-but-about-things-turning-out/)

Phil Hogan

> [Nobody can tell me that no changes are necessary in Washington.](https://sms4smile.com/quotes/william-weld/nobody-can-tell-me-that-no-changes-are-necessary-in-washington/)

[William Weld](https://sms4smile.com/quotes/author/william-weld/)

> [If my campaign is not in the debate, we will not be talking about how we really fix this problem of endless and expanding…](https://sms4smile.com/quotes/jill-stein/if-my-campaign-is-not-in-the-debate-we-will-not-be-talking-about-how/)

[Jill Stein](https://sms4smile.com/quotes/author/jill-stein/)

> [When you walk down the street of Kabul your values for life changes, they do change.](https://sms4smile.com/quotes/marco-pierre-white/when-you-walk-down-the-street-of-kabul-your-values-for-life-changes/)

[Marco Pierre White](https://sms4smile.com/quotes/author/marco-pierre-white/)

> [Your world will change whether or not you choose to change, but you have the power to choose it's direction.](https://sms4smile.com/quotes/napoleon-hill/your-world-will-change-whether-or-not-you-choose-to-change-but-you/)

[Napoleon Hill](https://sms4smile.com/quotes/author/napoleon-hill/)

> [I hope I continue to evolve.](https://sms4smile.com/quotes/charlotte-flair/i-hope-i-continue-to-evolve/)

[Charlotte Flair](https://sms4smile.com/quotes/author/charlotte-flair/)

> [“Stay focused on bringing people together and more on positive messaging so that you can be the change you wish to see in the…](https://sms4smile.com/quotes/germany-kent/stay-focused-on-bringing-people-together-and-more-on-positive/)

[Germany Kent](https://sms4smile.com/quotes/author/germany-kent/)

> [The biggest change for me as a mom was realizing I needed to put someone else before me. Now the hardest part about the…](https://sms4smile.com/quotes/kim-alexis/the-biggest-change-for-me-as-a-mom-was-realizing-i-needed-to-put/)

[Kim Alexis](https://sms4smile.com/quotes/author/kim-alexis/)

> [“After the funeral, my life changed. I felt as if time were suddenly precious, water going down an open drain, and I could not…](https://sms4smile.com/quotes/mitch-albom/after-the-funeral-my-life-changed-i-felt-as-if-time-were-suddenly/)

[Mitch Albom](https://sms4smile.com/quotes/author/mitch-albom/)

> [You practice mindfulness, on the one hand, to be calm and peaceful. On the other hand, as you practice mindfulness and live a life…](https://sms4smile.com/quotes/anonymous/you-practice-mindfulness-on-the-one-hand-to-be-calm-and-peaceful-on/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Irish research will contribute to global progress and have the potential to help all countries realise the potential of their land sectors in addressing…](https://sms4smile.com/quotes/enda-kenny/irish-research-will-contribute-to-global-progress-and-have-the/)

[Enda Kenny](https://sms4smile.com/quotes/author/enda-kenny/)

> [No man can change himself into anything from sheer reason; he can only change into what he potentially is.](https://sms4smile.com/quotes/carl-jung/no-man-can-change-himself-into-anything-from-sheer-reason-he-can-only/)

[Carl Jung](https://sms4smile.com/quotes/author/carl-jung/)

[Browse all 33,920 Change quotes ](https://sms4smile.com/quotes/about/change/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“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 ).”",
            "creator": {
                "@type": "Person",
                "name": "Kyle Simpson"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/kyle-simpson/if-you-tried-to-assign-any-different-value-to-tax-rate-after-that/",
            "about": {
                "@type": "Thing",
                "name": "Change"
            },
            "@id": "https://sms4smile.com/quotes/kyle-simpson/if-you-tried-to-assign-any-different-value-to-tax-rate-after-that/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg",
                "url": "https://sms4smile.com/quotes/i/03f/kyle-simpson-70360_change_if-you-tried-to-assign-any-different-val_2986776.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“If you tried to assign any different value to TAX_RATE after that first declaration, your program would…” — Kyle Simpson",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Kyle Simpson",
                    "item": "https://sms4smile.com/quotes/author/kyle-simpson/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“If you tried to assign any...",
                    "item": "https://sms4smile.com/quotes/kyle-simpson/if-you-tried-to-assign-any-different-value-to-tax-rate-after-that/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/kyle-simpson/if-you-tried-to-assign-any-different-value-to-tax-rate-after-that/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
