It is assigned as a prototype of objects created using this function using a keyword new.
So for example:
function Foo() {
}
Foo.prototype.bar = 47;
var obj = new Foo();
alert(obj.bar);
obj , Foo.prototype, , Foo.prototype obj:
Foo.prototype.charlie = 62;
alert(obj.charlie);
, Foo.prototype ( ), Foo.prototype . obj :
Foo.prototype = {delta: 77}; // Not recommended
alert(obj.delta); // alerts "undefined"
__proto__: __proto__ . ECMAScript5 ( ) , prototype. __proto__ JavaScript- ( Mozilla SpiderMonkey, Firefox). - , , ECMAScript, . ( ECMAScript5 .) __proto__ Mozilla.