---
title: "Meaning & Key Takeaway of: In fact, there’s a keyword in JavaScript…"
description: "\"“In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we’re in.”\" — Eric Freeman"
image: "https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg"
---

#  In fact, there’s a keyword in JavaScript named this, and…

![“In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we’re in.” quote by Eric Freeman](https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg)   [Download](https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg) [Open image](https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg)

> ““In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we’re in.””

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

In JavaScript, the keyword “this” refers to the current execution context, allowing access to the object that owns the code.

**In simple terms:** “this” points to the current object.

Key Takeaway

Understand context to use “this” correctly.

Themes

programming JavaScript context

Mood

technical educational

Type

instructional clarifying

When to use this quote

- web development
- debugging
- code reviews

Key Concepts

object orientation execution context scope resolution

Questions to Reflect On

- When does “this” refer to the global object?
- How does arrow function syntax affect “this”?

A Different Perspective

Misusing “this” can cause bugs and unexpected behavior.

★ ★ ★ ★ ★   No ratings yet

[Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [“in JavaScript just about everything is an object underneath, even”](https://sms4smile.com/quotes/eric-freeman/in-javascript-just-about-everything-is-an-object-underneath-even/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“That’s because the default prototype for any instance you create (assuming you don’t change it) is Object.”](https://sms4smile.com/quotes/eric-freeman/that-s-because-the-default-prototype-for-any-instance-you-create/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“the constructor always has a prototype property. More”](https://sms4smile.com/quotes/eric-freeman/the-constructor-always-has-a-prototype-property-more/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“when you assign a value to a variable name that hasn’t been previously declared, it is treated as a new, global variable. So be…](https://sms4smile.com/quotes/eric-freeman/when-you-assign-a-value-to-a-variable-name-that-hasn-t-been/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Web Workers have a global function named importScripts that you can use to import one or more JavaScript files into your worker. To”](https://sms4smile.com/quotes/eric-freeman/web-workers-have-a-global-function-named-importscripts-that-you-can/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [Can there be a love which does not make demands on its object?](https://sms4smile.com/quotes/confucius/can-there-be-a-love-which-does-not-make-demands-on-its-object/)

[Confucius](https://sms4smile.com/quotes/author/confucius/)

> [An object should be judged by whether it has a form consistent with its use.](https://sms4smile.com/quotes/bruno-munari/an-object-should-be-judged-by-whether-it-has-a-form-consistent-with/)

[Bruno Munari](https://sms4smile.com/quotes/author/bruno-munari/)

> [“The assumption that the problem of love is the problem of an object , not the problem of a faculty . People think that…](https://sms4smile.com/quotes/erich-fromm/the-assumption-that-the-problem-of-love-is-the-problem-of-an-object/)

[Erich Fromm](https://sms4smile.com/quotes/author/erich-fromm/)

> [To beautify life is to give it an object.](https://sms4smile.com/quotes/jose-marti/to-beautify-life-is-to-give-it-an-object/)

[Jose Marti](https://sms4smile.com/quotes/author/jose-marti/)

> [I would say that the whole way that I have approached the body is as a space, not a thing - not an object…](https://sms4smile.com/quotes/antony-gormley/i-would-say-that-the-whole-way-that-i-have-approached-the-body-is-as/)

[Antony Gormley](https://sms4smile.com/quotes/author/antony-gormley/)

> [PROPERTY, n. Any material thing, having no particular value, that may be held by A against the cupidity of B. Whatever gratifies the passion…](https://sms4smile.com/quotes/ambrose-bierce/property-n-any-material-thing-having-no-particular-value-that-may-be/)

[Ambrose Bierce](https://sms4smile.com/quotes/author/ambrose-bierce/)

> [Make something, a kind of object, which as it changes or falls apart (dies as it were) or increases in its parts (grows as…](https://sms4smile.com/quotes/jasper-johns/make-something-a-kind-of-object-which-as-it-changes-or-falls-apart/)

[Jasper Johns](https://sms4smile.com/quotes/author/jasper-johns/)

> [America is not static. America is striving. And sometimes, America requires critique. Jingoism is an avoidance of realism. You can simultaneously love and be…](https://sms4smile.com/quotes/charles-m-blow/america-is-not-static-america-is-striving-and-sometimes-america/)

[Charles M. Blow](https://sms4smile.com/quotes/author/charles-m-blow/)

> [The Text is not a definitive object.](https://sms4smile.com/quotes/roland-barthes/the-text-is-not-a-definitive-object/)

[Roland Barthes](https://sms4smile.com/quotes/author/roland-barthes/)

> [The whole nuclear-arms-control and non-proliferation policy of the nuclear powers is a fraud: The Americans could not prevent the Soviets from replicating their weaponry,…](https://sms4smile.com/quotes/conrad-black/the-whole-nuclear-arms-control-and-non-proliferation-policy-of-the/)

[Conrad Black](https://sms4smile.com/quotes/author/conrad-black/)

## More by Eric Freeman

> [“When you delete a property, you’re not just deleting the value of the property, you’re deleting the property itself. And, if you try to…](https://sms4smile.com/quotes/eric-freeman/when-you-delete-a-property-you-re-not-just-deleting-the-value-of-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“the constructor always has a prototype property. More”](https://sms4smile.com/quotes/eric-freeman/the-constructor-always-has-a-prototype-property-more/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“when you assign a value to a variable name that hasn’t been previously declared, it is treated as a new, global variable. So be…](https://sms4smile.com/quotes/eric-freeman/when-you-assign-a-value-to-a-variable-name-that-hasn-t-been/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Web Workers have a global function named importScripts that you can use to import one or more JavaScript files into your worker. To”](https://sms4smile.com/quotes/eric-freeman/web-workers-have-a-global-function-named-importscripts-that-you-can/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“If the two values have different types, try to convert them into the same type and then compare them”](https://sms4smile.com/quotes/eric-freeman/if-the-two-values-have-different-types-try-to-convert-them-into-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Well, it’s a browser policy, and it says you can’t retrieve data from a domain that is different from the domain the page itself…](https://sms4smile.com/quotes/eric-freeman/well-it-s-a-browser-policy-and-it-says-you-can-t-retrieve-data-from-a/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Math is not a constructor, or even a function. It’s an object. As you know, Math is a built-in object that you can use…](https://sms4smile.com/quotes/eric-freeman/math-is-not-a-constructor-or-even-a-function-it-s-an-object-as-you/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“When you pass zero to setTimeout, you’re asking JavaScript to run your timeout handler as soon as it possibly can — and this leads…](https://sms4smile.com/quotes/eric-freeman/when-you-pass-zero-to-settimeout-you-re-asking-javascript-to-run-your/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“JavaScript doesn’t have a character type. So characters are returned as new strings containing one character.”](https://sms4smile.com/quotes/eric-freeman/javascript-doesn-t-have-a-character-type-so-characters-are-returned/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Closures are often used to capture state for event handlers.”](https://sms4smile.com/quotes/eric-freeman/closures-are-often-used-to-capture-state-for-event-handlers/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Lexical scope means that we can determine the scope of a variable by reading our code.”](https://sms4smile.com/quotes/eric-freeman/lexical-scope-means-that-we-can-determine-the-scope-of-a-variable-by/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Q: Q: You said getElementsByTagName returns a list. Do you mean an array? A: A: It returns an object that you can treat like…](https://sms4smile.com/quotes/eric-freeman/q-q-you-said-getelementsbytagname-returns-a-list-do-you-mean-an-array/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“the truth is JavaScript actually makes two passes over your page: in the first pass it reads all the function definitions, and in the…](https://sms4smile.com/quotes/eric-freeman/the-truth-is-javascript-actually-makes-two-passes-over-your-page-in/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“If you change any property in the prototype, it affects all the objects that inherit from that prototype, unless that object has overridden that…](https://sms4smile.com/quotes/eric-freeman/if-you-change-any-property-in-the-prototype-it-affects-all-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“methods in objects are properties too. They just happen to have a function assigned to them.”](https://sms4smile.com/quotes/eric-freeman/methods-in-objects-are-properties-too-they-just-happen-to-have-a/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

[Explore all 90 Eric Freeman quotes ](https://sms4smile.com/quotes/author/eric-freeman/)

## More Object quotes

> [The whole nuclear-arms-control and non-proliferation policy of the nuclear powers is a fraud: The Americans could not prevent the Soviets from replicating their weaponry,…](https://sms4smile.com/quotes/conrad-black/the-whole-nuclear-arms-control-and-non-proliferation-policy-of-the/)

[Conrad Black](https://sms4smile.com/quotes/author/conrad-black/)

> [The Text is not a definitive object.](https://sms4smile.com/quotes/roland-barthes/the-text-is-not-a-definitive-object/)

[Roland Barthes](https://sms4smile.com/quotes/author/roland-barthes/)

> [America is not static. America is striving. And sometimes, America requires critique. Jingoism is an avoidance of realism. You can simultaneously love and be…](https://sms4smile.com/quotes/charles-m-blow/america-is-not-static-america-is-striving-and-sometimes-america/)

[Charles M. Blow](https://sms4smile.com/quotes/author/charles-m-blow/)

> [Make something, a kind of object, which as it changes or falls apart (dies as it were) or increases in its parts (grows as…](https://sms4smile.com/quotes/jasper-johns/make-something-a-kind-of-object-which-as-it-changes-or-falls-apart/)

[Jasper Johns](https://sms4smile.com/quotes/author/jasper-johns/)

> [PROPERTY, n. Any material thing, having no particular value, that may be held by A against the cupidity of B. Whatever gratifies the passion…](https://sms4smile.com/quotes/ambrose-bierce/property-n-any-material-thing-having-no-particular-value-that-may-be/)

[Ambrose Bierce](https://sms4smile.com/quotes/author/ambrose-bierce/)

> [I would say that the whole way that I have approached the body is as a space, not a thing - not an object…](https://sms4smile.com/quotes/antony-gormley/i-would-say-that-the-whole-way-that-i-have-approached-the-body-is-as/)

[Antony Gormley](https://sms4smile.com/quotes/author/antony-gormley/)

> [To beautify life is to give it an object.](https://sms4smile.com/quotes/jose-marti/to-beautify-life-is-to-give-it-an-object/)

[Jose Marti](https://sms4smile.com/quotes/author/jose-marti/)

> [“The assumption that the problem of love is the problem of an object , not the problem of a faculty . People think that…](https://sms4smile.com/quotes/erich-fromm/the-assumption-that-the-problem-of-love-is-the-problem-of-an-object/)

[Erich Fromm](https://sms4smile.com/quotes/author/erich-fromm/)

> [An object should be judged by whether it has a form consistent with its use.](https://sms4smile.com/quotes/bruno-munari/an-object-should-be-judged-by-whether-it-has-a-form-consistent-with/)

[Bruno Munari](https://sms4smile.com/quotes/author/bruno-munari/)

> [Can there be a love which does not make demands on its object?](https://sms4smile.com/quotes/confucius/can-there-be-a-love-which-does-not-make-demands-on-its-object/)

[Confucius](https://sms4smile.com/quotes/author/confucius/)

> [Our envy always outlives the felicity of its object.](https://sms4smile.com/quotes/francois-de-la-rochefoucauld/our-envy-always-outlives-the-felicity-of-its-object/)

[Francois de La Rochefoucauld](https://sms4smile.com/quotes/author/francois-de-la-rochefoucauld/)

> [The object is that which is objected against me.](https://sms4smile.com/quotes/julien-torma/the-object-is-that-which-is-objected-against-me/)

[Julien Torma](https://sms4smile.com/quotes/author/julien-torma/)

> [A western audience might not appreciate 'Chanakya's Chant' because of its dependence on history and ancient statecraft. My book is a modern-day thriller that…](https://sms4smile.com/quotes/ashwin-sanghi/a-western-audience-might-not-appreciate-chanakya-s-chant-because-of/)

[Ashwin Sanghi](https://sms4smile.com/quotes/author/ashwin-sanghi/)

> [It's hard to think of any tool, any instrument, any object in history with which so many developed so close a relationship so quickly…](https://sms4smile.com/quotes/nancy-gibbs/it-s-hard-to-think-of-any-tool-any-instrument-any-object-in-history/)

[Nancy Gibbs](https://sms4smile.com/quotes/author/nancy-gibbs/)

> [It's much more interesting for me to think that taking a chunk of experience and mushing it up together with other things that are…](https://sms4smile.com/quotes/helen-garner/it-s-much-more-interesting-for-me-to-think-that-taking-a-chunk-of/)

[Helen Garner](https://sms4smile.com/quotes/author/helen-garner/)

Browse all 340 Object quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean this object we’re in.”",
            "creator": {
                "@type": "Person",
                "name": "Eric Freeman"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/eric-freeman/in-fact-there-s-a-keyword-in-javascript-named-this-and-that-is/",
            "about": {
                "@type": "Thing",
                "name": "Object"
            },
            "@id": "https://sms4smile.com/quotes/eric-freeman/in-fact-there-s-a-keyword-in-javascript-named-this-and-that-is/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg",
                "url": "https://sms4smile.com/quotes/i/d8b/eric-freeman-7573_quote_in-fact-there-s-a-keyword-in-javascript_1885497.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“In fact, there’s a keyword in JavaScript named this, and that is exactly how you tell JavaScript you mean…” — Eric Freeman",
                "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": "Eric Freeman",
                    "item": "https://sms4smile.com/quotes/author/eric-freeman/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“In fact, there’s a keyword in...",
                    "item": "https://sms4smile.com/quotes/eric-freeman/in-fact-there-s-a-keyword-in-javascript-named-this-and-that-is/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/eric-freeman/in-fact-there-s-a-keyword-in-javascript-named-this-and-that-is/#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
            }
        }
    ]
}
```
