Follow

After 2 years I'm finally using classes in Javascript

@Miaourt classes were only added in es6
other stuff as been added since, but es6 has been around for a while i guess

@FloatingGhost Oh yeah just read that

Wow, how did ya did objects with methods before ? Handcrafting them ? There was "this" before ?

@Miaourt yeah technically es6 classes are just syntactic sugar for objects, so you could make a function to return an object with functions and suchlike

@Miaourt i used to use them when i came from java, but i feel they aren't much use in functional style…

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !