Dear JavaScript users,

Do you use ES6 or ES5 syntax for creating a class and adding helper functions? Node can't decypher ES6 so unsure what to do.

  • 3
    Cant decipher them in what way? Not sure what youre talking about. Node supports ES6 classes
  • 7

    I use typescript.

    SortOf Mostly Tested, Duchess of Dork, fifteenth of her name, P.hd-a-thesis

    (Transpile it)
  • 1
  • 3
    oops i was using node v8.6.2
  • 4
    NVM for the win
  • 1
    Just dropping in to say that I loathe ES6 "classes"

    That is all.
  • 0
  • 2
    @reginsmol Because "class" means something different in ES6 than in literally every other language out there.
  • 1
    @reginsmol because its not class, its just syntactic sugar to help people from other languages (read java fanbois) to get something done, how ever there will be a day when you will have this problem where you expect it to work but instead you get mad debugging experience and still have to learn how prototype chains really work
Add Comment