Interesting stuff - I would come back to this before an interview 😀
I really enjoyed doing research into prototypal inheritance having come from learning OOP in Java in Uni.
It's quite interesting. But now JavaScript has the class syntax, which is just syntactic sugar that hides the prototypical inheritance.
Do you think that’s a good thing? I’ve always felt it shoehorns the language into looking like Java when in reality they are very different.
I like that it's more consistent with class-based languages.
But then everyone should learn about prototypes before using it.
I agree, that’s a good way of putting it 😀
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Interesting stuff - I would come back to this before an interview 😀
I really enjoyed doing research into prototypal inheritance having come from learning OOP in Java in Uni.
It's quite interesting. But now JavaScript has the class syntax, which is just syntactic sugar that hides the prototypical inheritance.
Do you think that’s a good thing? I’ve always felt it shoehorns the language into looking like Java when in reality they are very different.
I like that it's more consistent with class-based languages.
But then everyone should learn about prototypes before using it.
I agree, that’s a good way of putting it 😀