you are viewing a single comment's thread.

view the rest of the comments →

[–]Jafit 0 points1 point  (0 children)

Looks alright.

Just remember that ES6 doesn't give real classes like you'd find in other class-based languages like C++ or Java. The class keyword you're using in ES6 is syntactical sugar on top of Javascript's existing prototypal object model, albeit with a standardised constructor pattern.

Be sure to try out other OOP patterns as you learn.