Shreeyog Gaikwadshreeyogblogs.hashnode.dev·Jul 24, 2024Understanding the 'this' Keyword in JavaScript : In 'this' BlogJavaScript is a powerful and versatile programming language that allows developers to build dynamic and interactive web applications. However, it has its quirks, and one of the concepts that often confuses both beginners and experienced developers is...DiscussJavascriptWeb Development
Pranay Ahirwarpranayahirwar.hashnode.dev·Jul 8, 2024this Keyword behavior in Object methods?What is the Value of this Keyword in following Code? // RUNNING IN NON-STRICT MODE // Global Variables let topLevelVar1 = "I am a top level variable 1"; let topLevelVar2 = "I am a top level variable 2"; // Create an employee object const employee =...DiscussJavaScript
Syed Aquib Alihadetan.hashnode.dev·Jun 8, 2024Object Destructuring , This, Classes and JSONObject Destructuring Object destructuring is a convenient way of extracting multiple properties from an object and assigning them to variables. It allows you to "unpack" values from objects into distinct variables using a concise syntax. Suppose we h...Discussclasses in javascript
Moniquectrlaltmonique.hashnode.dev·Jun 4, 2024Lexical this : How this works in Arrow FunctionsTraditional functions in JavaScript follow four common rules that dictate how this resolves during invocation. However, with the advent of ES6, arrow functions emerged as an alternative to traditional functions. They diverge from the standard this bi...Discusslexical this
Bhavesh Jadhavbhaveshjadhav.online·May 26, 2024JavaScript Concepts: Hoisting, this Keyword, and Undefined vs. Not DefinedJavaScript is a versatile and powerful language, but it comes with some concepts that can be tricky to understand. In this blog, we’ll explore three important concepts: hoisting, the this keyword, and the difference between undefined and not defined....DiscussJavascript BasicsJavaScript
Kali Baranwalkalibaranwal.hashnode.dev·Apr 30, 2024Exploring OOP Fundamentals: Part 4 BreakdownTHIS POINTER Its is a keyword which points to the objects which invokes the member function. It is used for return object. CODE: class A{ int a; public: void setdata(int a){ this->a=a; } void getdata(){ cout<<"the...Discussfriend function
Gaurav Goswamigauravgoswami.hashnode.dev·Apr 29, 2024What is `this`? 😵In English when we say this we are always referring to an object for example - this is a chair, here in this example chair is an object. Similarly in JavaScript, this refers to an object. If we have to define what is this we can say that this refers ...Discuss·94 readsthis keyword
Vikas singh varmavikas369.hashnode.dev·Apr 19, 2024This Keyword in Javascript'This' keyword depends on how and where a function is called. It acts like a chameleon, Adapting its meaning based on the context. This refers to an object that is executing the current function or code. Inside an Object method When 'This' is used wi...Discuss·20 likes·35 readsJavaScript
Moniquectrlaltmonique.hashnode.dev·Apr 5, 2024Unexpected 'this'In the previous article, we delved into the four primary rules that dictate a this binding in JavaScript functions. While these rules generally provide a solid framework for understanding this behaviour, exceptions do exist. These exceptions can lead...Discussbinding-exceptions
Successedesuccess.hashnode.dev·Mar 30, 2024Understanding the JavaScript "this" keywordIntroduction There is no doubt that figuring out the value of "this" keyword in a function can be confusing most of the time. however, it becomes easier to understand when you take note of these five important rules. Implicit Binding const car = {...DiscussJavaScript