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

    In JavaScript, the this keyword refers to an object. 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 …

  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. Demystifying JavaScript this Keyword with Practical Examples

    In JavaScript, you can use the this keyword in the global and function contexts. Moreover, the behavior of the this keyword changes between strict and non-strict modes. In general, the this …

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

    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 the following …

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

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

    Jun 17, 2021 · The "this" keyword in Javascript refers to the DOM element when used inside an event fired on the DOM element. Let's now move to the next article to understand the concept …

  10. What is the 'this' Keyword in JavaScript and How to Use It?

    May 6, 2025 · To effectively utilize the this keyword, it is essential to understand its context. Here’s a breakdown of common use cases: 1. Using 'this' in Object Methods. When this is …

  11. Some results have been removed
Refresh