DEV Community

Discussion on: Functional vs Object Oriented vs Procedural programming

Collapse
 
alrunner4 profile image
Alexander Carter

ES6 classes are basically just syntax sugar for functions, so you can certainly accomplish the class-centric design with just functions.

Collapse
 
efpage profile image
Eckehard

Yes, but the question is: does this improve your code? If somebody else has to maintain your project, will it help him to understand?

Thread Thread
 
jjablonskiit profile image
Jakub Jabłoński

Both solutions are good imo. Just be consistent with your choice and you will be good