prototypal inheritance concept in javascript as a prototype based language
问题 You know Javascript is a prototype-based programming language . I have read some books about Javascript and its prototypal inheritance concept but: "If you can't explain it to a six-year old, you really don't understand it yourself.”. Well, I tried to explain JavaScript prototype concept to a 22-year old friend and completely failed! How would you explain it to a 6-year old person that is strangely interested in that subject? I have seen some examples given in Stack Overflow, and it did not