Yousra Kamalyousraa.hashnode.dev·Nov 3, 2023The JavaScript "this" KeywordJavaScript, as one of the most popular and versatile programming languages for web development, offers a wide range of features and tools to create dynamic and interactive web applications. Among these features, the this keyword plays a crucial role ...Discuss·22 likes·71 readsthis keyword
Lim Woojaejaylog.hashnode.dev·May 19, 2023[JavaScript] Deep Dive into the THIS KeywordIntroduction In this article, I will talk about how you can determine where this keyword points to. By default, this keyword points to the Window Object, but you can change where it refers to. Where this points to depends on when the function is cal...Discuss·73 readsJavaScriptthis keyword
Shivangam Sonishivi.hashnode.dev·May 1, 2023Understanding `this` keyword in JavaScriptthis keyword in JavaScript is a common source of confusion for many developers, especially those who are new to the language. It can be used in a variety of contexts and can behave differently depending on the situation. In this article, we will expl...Discuss·10 likes·48 readsJavaScriptJavaScript
Samuel Olakadaolakadasami.hashnode.dev·Apr 8, 2023JavaScript: What is "this"Introduction Hello! Welcome to my blog!!! In this article, we are exploring this keyword in JavaScript The return value of this keyword in JavaScript is a source of confusion for many beginner JavaScript developers. Some avoid using it, while others ...Discuss·9 likes·141 readsJavaScript
Shams Nahidblog.shams-nahid.com·Jan 31, 2023Simplifying "this" in JavaScriptOverview The this keyword can be one of the most confusing concepts in JavaScript. We will explain this this in layman's terms with enough examples. this is the object the function is a property of One liner, obj.someFunc(this); Here, this is in t...Discuss·64 readsNode.js & JavaScriptJavaScript
David Okekefrontendokeke.hashnode.dev·Dec 22, 2022Man know thyself: Understanding this keyword in JavaScriptThe this keyword in JavaScript is used as a reference to the scope of the current execution context. What this means is that it represents an environment that contains the code that is currently running and everything that aids in it’s execution. Thi...Discuss·77 readsJavaScript
Harsh Ankurharshankur.hashnode.dev·Dec 15, 2022[Typescript OOP 2/3] Using "this"this is perhaps the most used keyword in Object Oriented Programming (OOP) model. You see, this model is based on the premise that each and everything we do on our code can be classified as objects having custom properties of their own. In fact, even...Discuss·35 readsoop
Jagrut Sharmajagrut-sharma.hashnode.dev·Nov 7, 2022What is "this" ?Prerequisite: Lexical Scope. Every time I came across a code snippet on MDN Web docs containing this. It always confused me and made me pull my hairs and go: This (pun intended) blog will solve all your doubts and will help you understand this keywo...Bharat Chotwani and 1 other are discussing this2 people are discussing thisDiscuss·6 likes·115 readsthis in js
Akash Dasakashsdas.hashnode.dev·Oct 9, 2022Default Binding of the this keyword in JavaScriptHave you ever wondered what is your this context? In this article, we will learn about finding our Nemo i.e. the this context in the case of default binding. But before that, let’s have a primer on implicit and explicit bindings. Implicit and Explici...Discuss·74 readsJavaScript
Akash Dasakashsdas.hashnode.dev·Oct 8, 2022The new Keyword in JavaScriptMost people consider the new keyword has something to do with the class constructor, that it is used to create instances using a class, also known as constructor invocation. For example: // "Constructor function" function Article(username) { this.u...Discuss·1 like·69 readsJavaScript