English [ˈprəʊtətaɪp] US [ˈproʊtətaɪp]

##n.Prototype, prototype, blueprint

Plural: prototypes

javascript prototype attribute syntax

What is the prototype attribute?

#The prototype attribute is a function-specific attribute and is also the prototype object of the function. The attributes and methods added to the prototype object can be inherited by objects after new is instantiated.

Function:The prototype attribute gives you the ability to add properties and methods to an object.

Syntax:object.prototype.name=value

javascript prototype attribute example

    

Run instance »

Click the "Run instance" button to view the online instance