#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
On this page of the site you can watch the video online JavaScript Tutorial in Hindi for Beginners [Part 34] - Object constructor function in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Tech Gun 13 April 2021, share the link with friends and acquaintances, this video has already been watched 64,061 times on youtube and it was liked by 1.2 thousand viewers. Enjoy your viewing!