In 30 years, JavaScript went from being a little scripting language to one of the world's most popular. Here are key moments to show how it has evolved and where it is headed.
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.
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 ;)
Object oriented languages can be either class based or prototype based. Java is class based, JS was back then prototype based
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.
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 ;)