About 397,000 results
Open links in new tab
  1. JavaScript this in Objects - W3Schools

    What is this? In JavaScript, the this keyword refers to an object. The this keyword refers to different objects depending on how it is used:

  2. this - JavaScript | MDN - MDN Web Docs

    Sep 18, 2025 · The value of this in JavaScript depends on how a function is invoked (runtime binding), not how it is defined. When a regular function is invoked as a method of an object …

  3. JavaScript this Keyword - GeeksforGeeks

    Jan 16, 2026 · The this keyword in JavaScript dynamically refers to the object that is executing the current function. Its value changes based on how and where it is used, not where it is written.

  4. How to Use the "this" Keyword in JavaScript - freeCodeCamp.org

    Jan 31, 2023 · In this article we're going to talk about the THIS keyword in Javascript. This used to be a concept that confused me a little bit, so I'll try to break it down for you so you can …

  5. Demystifying JavaScript this Keyword with Practical Examples

    This tutorial helps you master the JavaScript this keyword by showing you various practical examples.

  6. this keyword in JavaScript - TutorialsTeacher.com

    This article explains 'this' keyword in JavaScript. How to determine which object this points to? Learn rules for 'this'.

  7. Object methods, "this" - The Modern JavaScript Tutorial

    May 18, 2024 · In JavaScript, keyword this behaves unlike most other programming languages. It can be used in any function, even if it’s not a method of an object. There’s no syntax error in …

  8. javascript - How does the "this" keyword work, and when should …

    Jan 31, 2017 · When you use the JavaScript “this” keyword, it refers to the object to which function belongs. For example, inside of a function, when you say: “this.accoutNumber”, you …

  9. The this keyword - web.dev

    Mar 31, 2024 · Outside a function or the context of an object, this refers to the globalThis property, which is a reference to the global object in most JavaScript environments.

  10. Mastering this in JavaScript: A Complete Guide

    Sep 6, 2025 · Think of this as a hidden parameter that the JavaScript language creates for you when a function's body is evaluated. The most common place you’ll see this is in object …