How do getter or setter works on object in javascript ?
i.e.
In python if I call a nonexistent method on an object I could intercept the call via getter and setter and in turn return from getter and setter.
How do I do similar functionality in JavaScript ?
https://github.com/Flotype/now/blob/master/lib/client/now.js implements this functionality somehow. I didn't understand the trick. can anyone explain ?
getandsetmethod which then does the checking inside that method.