Prototypal inheritance in JavaScript
Vasily Chekalkin
bacek at bacek.com
Wed Jun 15 03:50:33 UTC 2011
Hello.
This is quite interesting video about Google's V8
http://www.youtube.com/watch?v=FrufJFBSoQY&feature=related
--
Bacek
On Tue, Jun 14, 2011 at 10:57 PM, rohit jangid <rohit.nsit08 at gmail.com> wrote:
> thanks lucian.
>
> My view on inheritance was that.
> 1) first an empty object is created and it prototype points to
> constructor's prototype .
> 2) this object is passed into the constructor function where it can be
> refrenced by "this"
> 3) this is returned when we use new operator with constructor funtion .
>
> but as I tried to print what is stored in rj and rj.prototype , rj was
> empty object and rj.prototype was undefined. So how is it able to
> access that test() property .
>
> the problem came when , an object was using different properties and I
> couldn't figured out how it was accessing them and what are the other
> available properties.
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>
More information about the parrot-dev
mailing list