#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
Nesta página do site você pode assistir ao vídeo on-line JavaScript Tutorial in Hindi for Beginners [Part 34] - Object constructor function in JavaScript duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Tech Gun 13 Abril 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 64,061 vezes e gostou 1.2 mil espectadores. Boa visualização!