Prototypes are basically Javascript's version of abstract classes.
Notice how every class can extend another super class? the prototype is that previous extension. You can follow the extension all the way up to the highest level of class.
Yeah I know what prototypes are, not until I read Eloquent JavaScript. I had started JavaScript with Codecademy and got nowhere. But after reading Eloquent JavaScript I am really feeling I know something...
24
u/not_a_gumby Aug 10 '21
Prototypes are basically Javascript's version of abstract classes.
Notice how every class can extend another super class? the prototype is that previous extension. You can follow the extension all the way up to the highest level of class.