good online source or book to understand prototype properties of javascript [closed]
开发者_开发百科
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this questionI want to create a class with javascript and I come across with prototype.
I tried to google it and still I don't seems to understand it well.
Anyone have read any nice online source or books that talk about it?
googled it, found some good articles:
http://particletree.com/features/javascript-basics-for-prototyping
http://www.prodevtips.com/2008/10/23/prototyping-with-javascript
http://www.southsearepublic.org/article/1174/read/object_oriented_javascript__prototyping
- JavaScript Garden (online)
- JavaScript: The Good Parts (book)
- JavaScript Patterns (book)
The Good parts by Douglas Crockford and JavaScript patterns by Stoyan Stevanov
There are many good javascript books. I would suggest,
- Pro Javascript Techniques - John Resig
- Javascript: The Good Parts - Douglas Crockford
And as for online sources, there is none better and comprehensive than Mozilla's Developer Network.
Here is the section on object.prototype by MDN
精彩评论