Lets say I have 100 objects
var a={name:'a'};
var b={name:'b'};
...
...
var xyz={name:'xyz'};
Now I want to add a method to all of these objects which will do something similar for all objects, let's say display the property 'name'. How can I add a method to the Object.prototype of all of these objects.