#javascript #programming #coding
In this video, we'll take a deep dive into the "this" keyword in JavaScript. Whether you're a beginner or an experienced JavaScript developer, this video will provide a comprehensive overview of the "this" keyword and help you avoid common mistakes. So, grab a cup of coffee and let's dive into the world of "this" in JavaScript!
Arrow function in javascript: https://youtu.be/V31xnx0UbOI
In JavaScript, the this keyword refers to an object.
Which object depends on how this is being invoked (used or called).
In javascript this is not a variable. It is a keyword. You cannot change the value of this.
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.
In a function, this refers to the global object.
In a function, in strict mode, this is undefined.
In an event, this refers to the element that received the event.
Follow me on Instagram : @ranaprince1234
Download
0 formats
No download links available.
this in Java script | this keyword in JavaScript in Hindi | Javascript tutorial | NatokHD