dynamic - Do we really need a functional object for applying prototype methods in javascript? if yes than why ? -
as can see in question 'how javascript .prototype work?' right way utilize prototype property functional object. not able understand why need functional object utilize prototype?
when create function in javascript, interpreter automatically creates prototype object it. because functions can used constructors.
only functions , no other object can used constructor.
that's reason functions have prototype property. prototype property of function special. instances of function have prototype of function in __proto__ chain.
read reply more details: http://stackoverflow.com/a/8096017/783743
javascript dynamic prototype
No comments:
Post a Comment