38
A brief history of JavaScript
(deno.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I don't understand this part. Isn't object oriented also class based?? I mean that's the entire reason why classes exist, to create objects. Isn't it? How is this separated here?
Object oriented languages can be either class based or prototype based. Java is class based, JS was back then prototype based
Thanks, I see. I'll research and learn more about the differences. Thought this was an writing error and didn't research yet.
The first fully-developed prototype-based OO language was Self, original Javascript seems quite similar.
I mean: it is a writing error, because you can't compare "class based" to OOP, since they are just different things, but this is what is suspect was the case ;)
They still are, the class syntax is syntactic sugar for prototype functions. I would say the only real difference right now as far as I know is that classes allow for private members(#prop), whereas prototype functions don't.
To my understanding, the original meaning of object oriented is more similar to what we call the actor model today.
In reference to the modern understanding of OO, js uses prototypal inheritance, which some consider closer to the original vision.