On Wednesday, a guy I'm working with said "Simon, what's all this .prototype crap in the the code?" An hour later, he understood. He's new to JavaScript, but not to development - he's a good PHP developer, but got confused...
One of my anonymous global friend “Simon Emms” explained prototype that we use in javascript, very brilliantly. As a PHP Developer, in classes we don’t use prototype to access any method and it was new to me. Simon helps to understand this with his words as follows :
Inside the Function object is a hidden object called prototype.
Prototype is what is used when calling a function with new.















