tags:

views:

69

answers:

3

I am looking for a good resource (comprehensive yet terse) that explains the Javascript object model: prototype, constructor, Function, Object, etc.

Surprisingly there aren't many resources out there that discuss this issue. The best I found, so far, is this: http://www.mollypages.org/misc/js.mp

Anyone familiar with other (hopefully better) explanations?

+2  A: 

www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf

meder
comprehensive but not terse. +1 though.
Itay
+2  A: 

I'm not exactly sure what you mean by Javascript object model, but if it's inheritance you're after, here's a nice overview by Joost Diepenmaat, which includes few helpful diagrams. There's also a decent article on this subject by Andrea Giammarchi.

kangax
+4  A: 

I rate book "Javascript:The Good Parts" by douglas Crockford as one of the best for understanding Javascript model and its nuances.

Online you may find this helpful too. http://kevlindev.com/tutorials/javascript/inheritance/index.htm http://www.packtpub.com/article/using-prototype-property-in-javascript

Hope it helps.

Priyank
The Crockford book is most excellent.
Eric Coleman
The Crockford book is really good. Crockford also has some must read articles on javascript on his website. You get them starting from here: http://javascript.crockford.com/Specific to your question are: "Private members in javascript", "Prototypal Inheritance in JavaScript", "Classical Inheritance in JavaScript". I suggest you take a look also at the first article: "The World's Most Misunderstood Programming Language"For me it was enlightening: put javascript into a different perspective
filippo