Can arrow functions be used as constructors?
Answers
Answered by
2
Arrow functions can never be used as constructor functions. Hence, they can never be invoked with the new keyword. As such, a prototype property does not exist for an arrow function.
Answered by
1
Arrow functions cannot be used as constructors. They cannot be called with the new keyword. ... Also, because arrow functions cannot be called with the new keyword, there is really no need for them to have a prototype.
Similar questions