Page 1 of 1

the prototype

Posted: Thu Jul 01, 2010 2:49 am
by everydayrun
i want to learn javascript recently,now,there is one concepts i can't understand,which is prototype, in javascript object, i see it show often,and there is also a javascript framwork named prototype. very confused. hope anyone can give me some more datails on the prototype in javascript object

Re: the prototype

Posted: Sat Jul 03, 2010 12:10 am
by PHPHorizons
JavaScript uses prototype-based inheritance. The Prototype Library is simply named after the style of inheritance JavaScript uses.

I would highly recommend reading the articles on this page here: http://javascript.crockford.com/

Douglas Crockford is a renowned JavaScript expert and has a series of articles about JavaScript inheritance geared towards beginners.

Good luck!