rating =9
name= Pen
price = 10
name= Book
price = 20
rating = 90
p1 p2
__proto__ __proto__
Read in the prototype chain
Slide 33
Slide 33 text
Read in
prototype chain
• Reads in the current object
• If it does not find it goes to the
object’s __proto__ object
• It goes further up to the prototype
chain if it does not find it.
• If it does not find it in
Object.prototype returns undefined
Slide 34
Slide 34 text
Write operation in the prototype chain
Slide 35
Slide 35 text
This was my 100th
Conference Talk, so thank
you for being part of it
@debug_mode
Slide 36
Slide 36 text
As an assignment – implement
inheritance between two function
constructors
Slide 37
Slide 37 text
Dhananjay Kumar
Connect me for Training and
Consulting.
Email – [email protected]
@debug_mode