JavaScript Tutorial in Hindi for Beginners [Part 34] - Object constructor function in JavaScript

Veröffentlicht am: 13 April 2021
auf dem Kanal: Tech Gun
64,061
1.2k

#Javascript #Tutorial #Hindi

Link for Complete JavaScript Tutorial in Hindi for Beginners:    • JavaScript Tutorial in Hindi  

Link for Complete HTML and CSS Tutorial in Hindi for Beginners:    • Playlist  

In this video i will talk about object constructor function in javascript.



Object Types (Blueprints) (Classes)

Sometimes we need a "blueprint" for creating many objects of the same "type". The way to create an "object type", is to use an object constructor function.

Objects of the same type are created by calling the constructor function with the new keyword.

In JavaScript, the thing called this is the object that "owns" the code. The value of this , when used in an object, is the object itself. In a constructor function this does not have a value. It is a substitute for the new object.

Note: It is considered a good practice to capitalize the first letter of your constructor function.

The constructor property returns a reference to the Object constructor function that created the instance object. Note that the value of this property is a reference to the function itself, not a string containing the function's name.


Please subscribe to watch more videos like this:    / @techgun  



Join this channel to support Tech Gun:
   / @techgun  


Auf dieser Seite können Sie das Online-Video JavaScript Tutorial in Hindi for Beginners [Part 34] - Object constructor function in JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Tech Gun 13 April 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 64,061 Mal angesehen und es wurde von 1.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!