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
classAnimal{constructor(name){this.name=name;}speak(){console.log(this.name+' makes a noise.');}}classDogextendsAnimal{constructor(name){super(name);// call the super class constructor and pass in the name parameter}speak(){console.log(this.name+' barks.');}}letd=newDog('Mitzie');d.speak();// Mitzie barks.
To:
@hys1440248234
面试公司:
兑吧
面试环节:
未知
问题:
prototype 和 proto 区别
The text was updated successfully, but these errors were encountered: