News for hackers. Stuff that matters.
Re:Ask HN: How should you actually do objects in Javascript? by TechpinesMary on Thursday April 04, 2013 @06:47PM (#5495785)
The best way is to add functions to the prototype. Also, here's a good article: http://www.phpied.com/3-ways-to-define-a-javascript-class/

There are no comments on this comment yet.