DEV Community


Discussion on: Classes in JavaScript

ianwijma profile image
Ian Wijma

One thing I personally don't like about classes in JS is that they are PURE syntactic sugar over functions. If you do typeof on a class it returns function. Which imo should return class. But that might just be me.

samanthaming profile image
Samantha Ming Author

woo good point! that might throw some people off -- let me add that to my notes, thanks for sharing!

Forem Open with the Forem app