News for hackers. Stuff that matters.
Re:JavaScript objects philosophy by snatcher on Friday October 12, 2012 @07:38AM (#4644571)
Thanks for demystifying prototypes. For me it's hard to think that you can have an object without defining its class. However it seems the right approach. We're speaking about Object orientation, not Class orientation so why bother with classes
Re:JavaScript objects philosophy by speg on Friday October 12, 2012 @08:23AM (#4644674)
You can think of a literal object as having a default class of 'Object', the built in native object.