About 14,900,000 results
Open links in new tab
  1. The JavaScript this Keyword - W3Schools

    The this keyword refers to different objects depending on how it is used: In an object method, this refers to the object . Alone, this refers to the global object .

  2. this - JavaScript | MDN - MDN Web Docs

    Apr 10, 2025 · The this keyword refers to the context where a piece of code, such as a function's body, is supposed to run. Most typically, it is used in object methods, where this refers to the …

  3. JavaScript this Keyword - GeeksforGeeks

    Jan 18, 2025 · The this keyword in JavaScript dynamically refers to the object executing a function or method. Its context varies: in methods, it points to the object itself; in the global …

  4. The JavaScript this Keyword Explained with Examples

    Jun 5, 2024 · The this keyword is a very important concept to know in JavaScript. The this keyword is a reference to an object, but the object varies based on where and how it is called. …

  5. How does the "this" keyword work, and when should it be used?

    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 …

  6. this keyword in JavaScript - TutorialsTeacher.com

    It can be used to set the context of 'this' to a specified object when a function is invoked.

  7. Understanding the `this` Keyword in JavaScript - Medium

    Aug 8, 2023 · At its core, the `this` keyword in JavaScript refers to the object it belongs to. However, its value is determined by how a function is called, not where it is declared.

  8. JavaScript “This” Keyword and How to Implement It - Simplilearn

    Apr 12, 2025 · “This” keyword refers to an object that is executing the current piece of code. It references the object that is executing the current function. If the function being referenced is a …

  9. What is THIS keyword in JavaScript and How to use it with …

    Jun 17, 2021 · What is THIS keyword in JavaScript and How to use it with Examples? All the object-oriented programming languages such as C++, Java, etc. provides the " this " keyword …

  10. Understanding the "this" keyword, call, apply, and bind in JavaScript

    Before diving into the specifics of the this keyword in JavaScript, it's important to take a step back and first look at why the this keyword exists in the first place. The this keyword allows you to …

  11. Some results have been removed
Refresh