DEV Community

Discussion on: 10 most common Javascript questions, answered PART 1

Collapse
 
maksimmedvedev profile image
MaksimMedvedev • Edited

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?

Collapse
 
duomly profile image
Duomly

Thanks for pointing, you’re right!
Arrow cannot be used like that, probably linter changed to arrow, going to fix!