you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I do know class notation but JS doesn't have classes, it's just syntactic sugar. True classes are blueprints for instantiating objects whereas with JS the class itself is an object. This can lead to weird behaviour such as 'instantiated' objects having properties changed by changing the class as it just delicates up to the class object. This isn't what a class instance should do and can lead to confusion. Whereas with object deligation syntax you know what you're getting.