|
|
|
|
|
by jonpress
4004 days ago
|
|
JavaScript is object oriented just like any other language. The difference is that it is prototype-based OO instead of class-based OO. I would say that JavaScript's OO is actually more powerful/flexible than other languages but it is less readable and more error prone if you're not careful - For example, the fact that objects can 'borrow' a method from other object an apply it to themselves is a common source of issues for beginners. |
|
Rust and Go are so exciting because they've intentionally rejected flexibility without compromising power.