Homepage
Sign in / Sign up
  • Share
Go to the profile of Jack Rimell
Jack Rimell
Front-end Developer interested in all things JS
Jan 26, 2016
init: function (type) => this.type,
Prototypes in JavaScript
Mattias Petter Johansson
1074

This line has an invalid use of the arrow function. It should be something like this `init: (type) => this.type = type,`

  • Go to the profile of Jack Rimell

    Jack Rimell

    Front-end Developer interested in all things JS

  • Don’t miss Jack Rimell’s next story
    Jack RimellJack Rimell