About 46,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 · Most typically, it is used in object methods, where this refers to the object that the method is attached to, thus allowing the same method to be reused on different objects. The …

  3. The JavaScript this Keyword Explained with Examples

    Jun 5, 2024 · In this article, you'll learn how to implicitly (based on context) and explicitly (using the call(), apply(), and bind() methods) determine the value of the this keyword. Here are the …

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

    Jan 31, 2017 · The this keyword behaves differently in JavaScript compared to other languages. In Object Oriented languages, the this keyword refers to the current instance of the class. In …

  5. What Does 'this' Mean in JavaScript? The this Keyword

    Jun 15, 2021 · Put simply, when you call a function using dot notation, this is implicitly bound to the object the function is being called from. In this example, since alert is being called from …

  6. What Does ‘this‘ Mean in JavaScript? An In-Depth Look at the this ...

    We covered a ton of ground explaining JavaScript‘s this binding, including: The 4 core binding rules: default, implicit, explicit, and new; How this linking has evolved over time ; Visual code …

  7. How to understand the keyword this and context in JavaScript

    Dec 21, 2018 · Explaining this can lead to a lot of confusion, simply by the naming of the keyword. this is tightly coupled to what context you are in, in your program. Let’s start all the way at the …

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

    Aug 7, 2023 · In the vast world of JavaScript, the `this` keyword often puzzles developers, both newcomers and seasoned professionals alike. This article aims to demystify this crucial …

  9. Everything You Need to Know About the - JavaScript in Plain …

    Jun 7, 2023 · In JavaScript, the ‘this’ keyword is used to refer to the object that a function is associated with. When a function is called without any explicit binding, the ‘this’ keyword uses …

  10. What is JavaScript? - GeeksforGeeks

    Nov 29, 2024 · JavaScript is a powerful and flexible programming language for the web that is widely used to make websites interactive and dynamic. JavaScript can also able to change or …

  11. Some results have been removed
Refresh