DEV Community

Discussion on: I Don't Use JavaScript Classes At All. Am I Missing Out on Something?

Collapse
 
emil profile image
Emil

bigger applications need more encapsulation. If you still are able to do that with functions and modules go for it. But depending on your preferences classes can help you to structure your code which is hard to do only with functions. Sure JS is no OO language but classes and SOLID principles work well with it