ABC is not a constructor


Arrow functions can't be used as constructors. You would see an error like the following from Chrome

ABC is not a constructor


Although it should be obvious that an arrow function can't be used as a constructor because this inside an arrow function refers to this outside the arrow function, sometimes you just forget it while using the arrow functions as a quick way to create functions.

... Loading comments