Possible Duplicate:
Javascript - this Vs. prototype
This article says that prototype object can also help you quickly add a custom method to an object that is reflected on all instances of it.
But this code (without using prototype object) also adds method for all instances:
function al(){
this.show = function(){alert('hi!')}
}
var x = new al();
x.show();
var y = new al();
y.show();
What could be the advantage of prototype object here? Did i misread that article?