You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above works; with Dog is defined as a function. The following does not work.
classDog{constructor(){}bark(){return"bark! bark!";}}constDogFake=td.constructor(Dog);constdog=newDogFake();// TypeError: Class constructor cannot be invoked without 'new'
The text was updated successfully, but these errors were encountered:
ECMAScript 2015 class supported?
The above works; with
Dog
is defined as a function. The following does not work.The text was updated successfully, but these errors were encountered: