I'm wondering if there is a way that Javascript can mimic an object oriented language. I.e. can you mimic the ability to define customized classes/objects with properties? Since JSON is basically a way of javascript passing objects, I figure there must be some way to create/store objects on the client side, then reuse them? If someone can point me to a good tutorial (if it's possible to do this at all) that would be much appreciated.
Even some example code where you can dynamically create an object, then consume it using jquery would be appreciated.
Javascript is an object oriented language, it's just not a class based object system, but a prototype based one. See this article: http://en.wikipedia.org/wiki/Prototype-based_programming
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With