Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

Why is keyword used a lot in JavaScript?

3 Posts
3 Users
0 Reactions
126 Views
Posts: 461
Topic starter
(@dinesha-g)
Reputable Member
Joined: 2 years ago

<this> keyword in JavaScript

2 Replies
Posts: 52
(@chitravarsha15)
Trusted Member
Joined: 2 years ago

The this keyword in JavaScript designates an object. Depending on how this is invoked, which object will be used (used or called). Depending on how it is used, the this keyword can be used to refer to a variety of objects: This refers to the object in an object method.

 

 

Reply
Posts: 173
(@princy)
Estimable Member
Joined: 2 years ago

The this keyword in JavaScript enables us to: Reuse functions in various execution contexts. It implies that a function can be called for various objects after it has been declared by utilising the this keyword.

Reply
Share: