Hi) Thanks for the article!
As far as I know arrow functions my not be used as constructors (since they do now have their own evaluated "this" context, I guess, could be wrong though). So I think the "Person" constructor example would result in TypeError?
Hi) Thanks for the article!
As far as I know arrow functions my not be used as constructors (since they do now have their own evaluated "this" context, I guess, could be wrong though). So I think the "Person" constructor example would result in TypeError?
Thanks for pointing, you’re right!
Arrow cannot be used like that, probably linter changed to arrow, going to fix!