prototype-oriented

How does JavaScript .prototype work?

I'm not that in to dynamic programming but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one who know how this works? var obj = new Object(); obj.prototype.test = function() { alert('Hello?'); }; var obj2 = new obj(); obj2.test(); I remember a lot talk I ha...

Is it worth to use prototype or should we use OOP for javascript?

I am a developer for sometime now, and for the past few years I am using prototype framework and it's implementation for OOP, to be used in Javascript. I've used jquery and some other frameworks as well. I 've been studying how js works and how differs from OOP, as it is a prototype oriented language. In my opinion is in fact a great co...