Check out this code snippet:
Apple defines its function using a prototype.
Banana defines its function using a class property.
var Apple = function(){}
Apple.prototype.say = function(){
console.debug('HelloWorld');
}
var Banana = function(){
this.say = function(){
console.debug('HelloWorld');
}
}
var a = new Apple();
var b = new Banana();
a.say();
b.say();
Do you notice the difference?