Skip to content
markdown guide

Doesn't Node support the ES6 class syntax? I think you can just do exactly what you want.


wow didn't know it was that easy, thanks!


Classes in ES6+ are really just syntax sugar, so I don't think this actually answers your question in quite the right spirit, but it is a feature you can use :)

I 100% agree with you Ben, but if a feature is there, might as well use it, right?

with and eval are features too. You might be better off looking into how functional programming can solve the problem you're solutioneering.

Classic DEV Post from Mar 7

Let's talk about Linux

a tiny comic about Linux

FultonB profile image
I am an full stack developer trying to change the world with code.