You should use the property prototypeonly constructor Functions , and not in object instances, for example:
function Test () {}
Test.prototype.method1 = function () {};
var obj = new Test();
prototype new, .
, .
- [[Prototype]], new - , .
obj , method1 obj, , Test.prototype , , :
typeof obj.method1; // "function"
obj.hasOwnProperty('method1'); // false
obj.method1 === Test.prototype.method1; // true
prototype , , :
var myObject = {};
myObject.prototype = "foo";
myObject.bar = "bar";
// myObject is simply {"prototype":"foo","bar":"bar"}