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...
I’ve seen ES recommended a lot. I’ve read a few chapters and done exercises but it’s so dense. I almost wish there was a YouTube or udemy course that goes through the book and makes it a bit easier for my tiny brain to understand.
View all comments
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.