I can not figure out what a prototype is in javascript, tell me what it is.
in a book with a rhino (David Flanagan) is written
7.4.7. The isPrototypeOf() Method The isPrototypeOf() method returns true if the object to which the method belongs is the prototype of the object passed to the method as an argument. Otherwise, the method returns false . For example:
var o = {}; Object.prototype.isPrototypeOf(o); // true: o.constructor == Object Object.isPrototypeOf(o); // false o.isPrototypeOf(Object.prototype); // false Function.prototype.isPrototypeOf(Object); // true: Object.constructor == Function