ABC is not a constructor

TIL

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

ABC is not a constructor

ABC%20is%20not%20a%20constructor%20add2fa209d414eecbf4a472f0165b962/Screenshot_2021-07-06_at_12.19.43_PM.png

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