3 ms·
Prototypes are quite simple. An object may have a prototype. If it does then that prototype is just another object, which is considered the first objects parent
by nicoburns 5y ago
Prototypes are quite simple. An object may have a prototype. If it does then that prototype is just another object, which is considered the first objects parent (which works with method calls like class based inheritance). The chain ends because it's also possible for an object not to have a prototype.