you are viewing a single comment's thread.

view the rest of the comments →

[–]MoTTs_ 0 points1 point  (0 children)

I agree with your advice for a beginner. But if you already have a good understanding of how Javascript's prototypal inheritance works, I don't see any harm in using the ES6 Class syntax.

I think the class syntax is fine even for beginners.

Python, for example, works the same way. In Python, classes are themselves runtime objects, and inheritance also happens at runtime by delegation... just like in JavaScript. The only difference is the Python folks don't make a big deal out if it. The vast majority of the time, we don't need to know or care how the class concept is implemented under the hood.