eat和drank同样都是在原型定义的方法,调用的方法也是一样的,它俩后台显示不一样,有什么区别吗

我想要达到的结果
 class Student {
            constructor(name, age) {
                this.name = name
                this.age = age
            }
            eat() {
                console.log('meat');
            }

        }
        Student.prototype.drank = function () {
            console.log('water');
        }
        Student.play = function(){
            console.log('basketball');
        }
        console.dir(Student);
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/173722941956159.png "#left")


img