What’s the best way to define a class in javascript

Author: 
Published: December 22, 2008
Link: http://stackoverflow.com/questions/387707/whats-the-best-way-to-define-a-class-in-javascript
Excerpt: “While I’m not entirely new to javascript I have very little knowledge when it comes to best practices. In particular, I prefer to use OOP in large scale projects like the one I’m working on right now. I need to create several classes in javascript but, if I’m not mistaken, there are at least a couple of ways to go about doing that. Can anyone in the know share their syntax and maybe explain briefly why they choose to do it that way?”

Tagged with:
Posted in Javascript

Categories